Browse Source

Contrary to C99's advice, C++ TR1 and C++ 11 require that <inttypes.h>

and <stdint.h> should unconditionally define all of their macros
regardless of whether the __STDC_*_MACROS macros are defined.
ok guenther, espie
bulk build tested by landry
OPENBSD_5_4
matthew 11 years ago
parent
commit
bffb735356
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/include/inttypes.h

+ 1
- 4
src/include/inttypes.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: inttypes.h,v 1.10 2009/01/13 18:13:51 kettenis Exp $ */
/* $OpenBSD: inttypes.h,v 1.11 2013/06/11 15:59:16 matthew Exp $ */
/*
* Copyright (c) 1997, 2005 Todd C. Miller <Todd.Miller@courtesan.com>
@ -25,7 +25,6 @@
#define __wchar_t wchar_t
#endif
#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS)
/*
* 7.8.1 Macros for format specifiers
*
@ -244,8 +243,6 @@
#define SCNxMAX "jx" /* uintmax_t */
#define SCNxPTR "lx" /* uintptr_t */
#endif /* __cplusplus || __STDC_FORMAT_MACROS */
typedef struct {
intmax_t quot; /* quotient */
intmax_t rem; /* remainder */


Loading…
Cancel
Save