diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-11 12:50:24 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-11 12:51:06 -0700 |
commit | 687b363477a788a1353217147239484e3b02e3b2 (patch) | |
tree | c08a87a8b166250cb5550126a6771212cde71f11 /compiler.h | |
parent | 51cbf4a1fabe0f7b2604e69f3cf5228dc2cbce2b (diff) | |
download | nasm-687b363477a788a1353217147239484e3b02e3b2.tar.gz nasm-687b363477a788a1353217147239484e3b02e3b2.tar.bz2 nasm-687b363477a788a1353217147239484e3b02e3b2.zip |
Define macros necessary for <inttypes.h> on C++
NASM currently doesn't compile with a C++ compiler, but the error
messages are sometimes useful. Define macros necessary for
<inttypes.h> to work with a C++ compiler.
Diffstat (limited to 'compiler.h')
-rw-r--r-- | compiler.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -24,6 +24,13 @@ # include "config.h" #endif +/* This is required to get the standard <inttypes.h> macros when compiling + with a C++ compiler. This must be defined *before* <inttypes.h> is + included, directly or indirectly. */ +#define __STDC_CONSTANT_MACROS 1 +#define __STDC_LIMIT_MACROS 1 +#define __STDC_FORMAT_MACROS 1 + #ifdef __GNUC__ # if __GNUC__ >= 4 # define HAVE_GNUC_4 |