mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
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.
This commit is contained in:
parent
51cbf4a1fa
commit
687b363477
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user