Print this page
remove support for non-ANSI compilation

@@ -18,19 +18,19 @@
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
 /*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 #ifndef _SYS_INT_FMTIO_H
 #define _SYS_INT_FMTIO_H
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * This file, <sys/int_fmtio.h>, is part of the Sun Microsystems implementation
  * of <inttypes.h> as defined by the ISO C Standard, ISO/IEC 9899:1999
  * Programming language - C.
  *

@@ -92,15 +92,13 @@
 #define _PRIo   "o"
 #define _PRIu   "u"
 #define _PRIx   "x"
 #define _PRIX   "X"
 
-#if defined(_CHAR_IS_SIGNED) || defined(__STDC__)
 #define PRId8                   _MODF8 _PRId
 #define PRIdLEAST8              PRId8
 #define PRIdFAST8               PRId8
-#endif
 #define PRId16                  _MODF16 _PRId
 #define PRIdLEAST16             PRId16
 #define PRId32                  "d"
 #define PRIdFAST16              PRId32
 #define PRIdLEAST32             PRId32

@@ -115,15 +113,13 @@
 #ifdef PRId64
 #define PRIdLEAST64             PRId64
 #define PRIdFAST64              PRId64
 #endif
 
-#if defined(_CHAR_IS_SIGNED) || defined(__STDC__)
 #define PRIi8                   _MODF8 _PRIi
 #define PRIiLEAST8              PRIi8
 #define PRIiFAST8               PRIi8
-#endif
 #define PRIi16                  _MODF16 _PRIi
 #define PRIiLEAST16             PRIi16
 #define PRIi32                  "i"
 #define PRIiFAST16              PRIi32
 #define PRIiLEAST32             PRIi32

@@ -249,15 +245,13 @@
 #endif /* defined(_LP64) || defined(_I32LPx) */
 
 /*
  * fscanf macros for signed integers
  */
-#if defined(_CHAR_IS_SIGNED) || defined(__STDC__)
 #define SCNd8                   "hhd"
 #define SCNdLEAST8              SCNd8
 #define SCNdFAST8               SCNd8
-#endif
 #define SCNd16                  "hd"
 #define SCNdLEAST16             SCNd16
 #define SCNd32                  "d"
 #define SCNdFAST16              SCNd32
 #define SCNdLEAST32             SCNd32

@@ -267,15 +261,13 @@
 #define SCNdLEAST64             PRId64
 #define SCNdFAST64              PRId64
 #endif
 #define SCNdPTR                 PRIdPTR
 
-#if defined(_CHAR_IS_SIGNED) || defined(__STDC__)
 #define SCNi8                   "hhi"
 #define SCNiLEAST8              SCNi8
 #define SCNiFAST8               SCNi8
-#endif
 #define SCNi16                  "hi"
 #define SCNiLEAST16             SCNi16
 #define SCNi32                  "i"
 #define SCNiFAST16              SCNi32
 #define SCNiLEAST32             SCNi32