diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-01-08 12:01:01 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-01-08 12:01:01 (GMT) |
commit | 249de3aa43894b71edf7c27e9cfc379cc83aa0ed (patch) | |
tree | db48d6cf80d231ba8bc152e4fdcd37b0371760a3 | |
parent | 60a47bd88973d1e85427a5e909d0b65668b20d73 (diff) |
Better handling of inttypes.h
-rw-r--r-- | include/tng_io.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/tng_io.h b/include/tng_io.h index f2c77a4..4dcb204 100644 --- a/include/tng_io.h +++ b/include/tng_io.h @@ -282,7 +282,6 @@ #else /* Visual Studio does not contain inttypes.h and stdint.h. Some defines and * typedefs are used from the GNU C Library */ -#ifndef _STDINT_H #ifdef _MSC_VER typedef __int32 int32_t; @@ -293,9 +292,7 @@ typedef unsigned __int64 uint64_t; #else #include <stdint.h> #endif /* _MSC_VER */ -#endif /* _STDINT_H */ -#ifndef _INTTYPES_H /* This is from inttypes.h (GNU C Library) */ /* The ISO C99 standard specifies that these macros must only be defined if explicitly requested. */ @@ -312,14 +309,9 @@ typedef unsigned __int64 uint64_t; /* From stdint.h (GNU C Library) */ /* Macros for printing format specifiers. */ /* Decimal notation. */ -# define PRId8 "d" -# define PRId16 "d" -# define PRId32 "d" # define PRId64 __PRI64_PREFIX "d" #endif -#endif /* _INTTYPES_H */ - #endif /* USE_STD_INTTYPES_H */ |