Mercurial > hg > CbC > CbC_gcc
comparison gcc/ginclude/stdint-gcc.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 77e2b8dfacca |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Copyright (C) 2008, 2009 Free Software Foundation, Inc. | 1 /* Copyright (C) 2008-2017 Free Software Foundation, Inc. |
2 | 2 |
3 This file is part of GCC. | 3 This file is part of GCC. |
4 | 4 |
5 GCC is free software; you can redistribute it and/or modify | 5 GCC is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
89 /* 7.8.1.5 Greatest-width integer types */ | 89 /* 7.8.1.5 Greatest-width integer types */ |
90 | 90 |
91 typedef __INTMAX_TYPE__ intmax_t; | 91 typedef __INTMAX_TYPE__ intmax_t; |
92 typedef __UINTMAX_TYPE__ uintmax_t; | 92 typedef __UINTMAX_TYPE__ uintmax_t; |
93 | 93 |
94 #if !defined __cplusplus || defined __STDC_LIMIT_MACROS | 94 #if (!defined __cplusplus || __cplusplus >= 201103L \ |
95 || defined __STDC_LIMIT_MACROS) | |
95 | 96 |
96 /* 7.18.2 Limits of specified-width integer types */ | 97 /* 7.18.2 Limits of specified-width integer types */ |
97 | 98 |
98 #ifdef __INT8_MAX__ | 99 #ifdef __INT8_MAX__ |
99 # undef INT8_MAX | 100 # undef INT8_MAX |
227 #undef WINT_MAX | 228 #undef WINT_MAX |
228 #define WINT_MAX __WINT_MAX__ | 229 #define WINT_MAX __WINT_MAX__ |
229 #undef WINT_MIN | 230 #undef WINT_MIN |
230 #define WINT_MIN __WINT_MIN__ | 231 #define WINT_MIN __WINT_MIN__ |
231 | 232 |
232 #endif /* !defined __cplusplus || defined __STDC_LIMIT_MACROS */ | 233 #endif /* (!defined __cplusplus || __cplusplus >= 201103L |
233 | 234 || defined __STDC_LIMIT_MACROS) */ |
234 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS | 235 |
236 #if (!defined __cplusplus || __cplusplus >= 201103L \ | |
237 || defined __STDC_CONSTANT_MACROS) | |
235 | 238 |
236 #undef INT8_C | 239 #undef INT8_C |
237 #define INT8_C(c) __INT8_C(c) | 240 #define INT8_C(c) __INT8_C(c) |
238 #undef INT16_C | 241 #undef INT16_C |
239 #define INT16_C(c) __INT16_C(c) | 242 #define INT16_C(c) __INT16_C(c) |
252 #undef INTMAX_C | 255 #undef INTMAX_C |
253 #define INTMAX_C(c) __INTMAX_C(c) | 256 #define INTMAX_C(c) __INTMAX_C(c) |
254 #undef UINTMAX_C | 257 #undef UINTMAX_C |
255 #define UINTMAX_C(c) __UINTMAX_C(c) | 258 #define UINTMAX_C(c) __UINTMAX_C(c) |
256 | 259 |
257 #endif /* !defined __cplusplus || defined __STDC_CONSTANT_MACROS */ | 260 #endif /* (!defined __cplusplus || __cplusplus >= 201103L |
261 || defined __STDC_CONSTANT_MACROS) */ | |
262 | |
263 #ifdef __STDC_WANT_IEC_60559_BFP_EXT__ | |
264 /* TS 18661-1 widths of integer types. */ | |
265 | |
266 #ifdef __INT8_TYPE__ | |
267 # undef INT8_WIDTH | |
268 # define INT8_WIDTH 8 | |
269 #endif | |
270 #ifdef __UINT8_TYPE__ | |
271 # undef UINT8_WIDTH | |
272 # define UINT8_WIDTH 8 | |
273 #endif | |
274 #ifdef __INT16_TYPE__ | |
275 # undef INT16_WIDTH | |
276 # define INT16_WIDTH 16 | |
277 #endif | |
278 #ifdef __UINT16_TYPE__ | |
279 # undef UINT16_WIDTH | |
280 # define UINT16_WIDTH 16 | |
281 #endif | |
282 #ifdef __INT32_TYPE__ | |
283 # undef INT32_WIDTH | |
284 # define INT32_WIDTH 32 | |
285 #endif | |
286 #ifdef __UINT32_TYPE__ | |
287 # undef UINT32_WIDTH | |
288 # define UINT32_WIDTH 32 | |
289 #endif | |
290 #ifdef __INT64_TYPE__ | |
291 # undef INT64_WIDTH | |
292 # define INT64_WIDTH 64 | |
293 #endif | |
294 #ifdef __UINT64_TYPE__ | |
295 # undef UINT64_WIDTH | |
296 # define UINT64_WIDTH 64 | |
297 #endif | |
298 | |
299 #undef INT_LEAST8_WIDTH | |
300 #define INT_LEAST8_WIDTH __INT_LEAST8_WIDTH__ | |
301 #undef UINT_LEAST8_WIDTH | |
302 #define UINT_LEAST8_WIDTH __INT_LEAST8_WIDTH__ | |
303 #undef INT_LEAST16_WIDTH | |
304 #define INT_LEAST16_WIDTH __INT_LEAST16_WIDTH__ | |
305 #undef UINT_LEAST16_WIDTH | |
306 #define UINT_LEAST16_WIDTH __INT_LEAST16_WIDTH__ | |
307 #undef INT_LEAST32_WIDTH | |
308 #define INT_LEAST32_WIDTH __INT_LEAST32_WIDTH__ | |
309 #undef UINT_LEAST32_WIDTH | |
310 #define UINT_LEAST32_WIDTH __INT_LEAST32_WIDTH__ | |
311 #undef INT_LEAST64_WIDTH | |
312 #define INT_LEAST64_WIDTH __INT_LEAST64_WIDTH__ | |
313 #undef UINT_LEAST64_WIDTH | |
314 #define UINT_LEAST64_WIDTH __INT_LEAST64_WIDTH__ | |
315 | |
316 #undef INT_FAST8_WIDTH | |
317 #define INT_FAST8_WIDTH __INT_FAST8_WIDTH__ | |
318 #undef UINT_FAST8_WIDTH | |
319 #define UINT_FAST8_WIDTH __INT_FAST8_WIDTH__ | |
320 #undef INT_FAST16_WIDTH | |
321 #define INT_FAST16_WIDTH __INT_FAST16_WIDTH__ | |
322 #undef UINT_FAST16_WIDTH | |
323 #define UINT_FAST16_WIDTH __INT_FAST16_WIDTH__ | |
324 #undef INT_FAST32_WIDTH | |
325 #define INT_FAST32_WIDTH __INT_FAST32_WIDTH__ | |
326 #undef UINT_FAST32_WIDTH | |
327 #define UINT_FAST32_WIDTH __INT_FAST32_WIDTH__ | |
328 #undef INT_FAST64_WIDTH | |
329 #define INT_FAST64_WIDTH __INT_FAST64_WIDTH__ | |
330 #undef UINT_FAST64_WIDTH | |
331 #define UINT_FAST64_WIDTH __INT_FAST64_WIDTH__ | |
332 | |
333 #ifdef __INTPTR_TYPE__ | |
334 # undef INTPTR_WIDTH | |
335 # define INTPTR_WIDTH __INTPTR_WIDTH__ | |
336 #endif | |
337 #ifdef __UINTPTR_TYPE__ | |
338 # undef UINTPTR_WIDTH | |
339 # define UINTPTR_WIDTH __INTPTR_WIDTH__ | |
340 #endif | |
341 | |
342 #undef INTMAX_WIDTH | |
343 #define INTMAX_WIDTH __INTMAX_WIDTH__ | |
344 #undef UINTMAX_WIDTH | |
345 #define UINTMAX_WIDTH __INTMAX_WIDTH__ | |
346 | |
347 #undef PTRDIFF_WIDTH | |
348 #define PTRDIFF_WIDTH __PTRDIFF_WIDTH__ | |
349 | |
350 #undef SIG_ATOMIC_WIDTH | |
351 #define SIG_ATOMIC_WIDTH __SIG_ATOMIC_WIDTH__ | |
352 | |
353 #undef SIZE_WIDTH | |
354 #define SIZE_WIDTH __SIZE_WIDTH__ | |
355 | |
356 #undef WCHAR_WIDTH | |
357 #define WCHAR_WIDTH __WCHAR_WIDTH__ | |
358 | |
359 #undef WINT_WIDTH | |
360 #define WINT_WIDTH __WINT_WIDTH__ | |
361 | |
362 #endif | |
258 | 363 |
259 #endif /* _GCC_STDINT_H */ | 364 #endif /* _GCC_STDINT_H */ |