1695b41eeSopenharmony_ci// Copyright 2012 Google Inc. All Rights Reserved. 2695b41eeSopenharmony_ci// 3695b41eeSopenharmony_ci// Licensed under the Apache License, Version 2.0 (the "License"); 4695b41eeSopenharmony_ci// you may not use this file except in compliance with the License. 5695b41eeSopenharmony_ci// You may obtain a copy of the License at 6695b41eeSopenharmony_ci// 7695b41eeSopenharmony_ci// http://www.apache.org/licenses/LICENSE-2.0 8695b41eeSopenharmony_ci// 9695b41eeSopenharmony_ci// Unless required by applicable law or agreed to in writing, software 10695b41eeSopenharmony_ci// distributed under the License is distributed on an "AS IS" BASIS, 11695b41eeSopenharmony_ci// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12695b41eeSopenharmony_ci// See the License for the specific language governing permissions and 13695b41eeSopenharmony_ci// limitations under the License. 14695b41eeSopenharmony_ci 15695b41eeSopenharmony_ci#ifndef NINJA_WIN32PORT_H_ 16695b41eeSopenharmony_ci#define NINJA_WIN32PORT_H_ 17695b41eeSopenharmony_ci 18695b41eeSopenharmony_ci#if defined(__MINGW32__) || defined(__MINGW64__) 19695b41eeSopenharmony_ci#ifndef __STDC_FORMAT_MACROS 20695b41eeSopenharmony_ci#define __STDC_FORMAT_MACROS 21695b41eeSopenharmony_ci#endif 22695b41eeSopenharmony_ci#include <inttypes.h> 23695b41eeSopenharmony_ci#endif 24695b41eeSopenharmony_ci 25695b41eeSopenharmony_citypedef signed short int16_t; 26695b41eeSopenharmony_citypedef unsigned short uint16_t; 27695b41eeSopenharmony_ci/// A 64-bit integer type 28695b41eeSopenharmony_citypedef signed long long int64_t; 29695b41eeSopenharmony_citypedef unsigned long long uint64_t; 30695b41eeSopenharmony_ci 31695b41eeSopenharmony_ci// printf format specifier for uint64_t, from C99. 32695b41eeSopenharmony_ci#ifndef PRIu64 33695b41eeSopenharmony_ci#define PRId64 "I64d" 34695b41eeSopenharmony_ci#define PRIu64 "I64u" 35695b41eeSopenharmony_ci#define PRIx64 "I64x" 36695b41eeSopenharmony_ci#endif 37695b41eeSopenharmony_ci 38695b41eeSopenharmony_ci#endif // NINJA_WIN32PORT_H_ 39695b41eeSopenharmony_ci 40