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 2005 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 #ifndef _INTTYPES_H
 #define _INTTYPES_H
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * This file, <inttypes.h>, is specified by the ISO C standard,
  * standard, ISO/IEC 9899:1999 Programming language - C and is
  * also defined by SUSv3.
  *

@@ -103,11 +103,10 @@
 #endif /* !defined(_LP64) && !defined(_LONGLONG_TYPE) */
 
 #if (!defined(_XOPEN_SOURCE) || defined(_XPG6)) || defined(_STDC_C99) || \
         defined(__EXTENSIONS__)
 
-#ifdef __STDC__
 extern intmax_t  imaxabs(intmax_t);
 extern imaxdiv_t imaxdiv(intmax_t, intmax_t);
 extern intmax_t  strtoimax(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD,
         int);
 extern uintmax_t strtoumax(const char *_RESTRICT_KYWD, char **_RESTRICT_KYWD,

@@ -114,18 +113,10 @@
         int);
 extern intmax_t  wcstoimax(const wchar_t *_RESTRICT_KYWD,
         wchar_t **_RESTRICT_KYWD, int);
 extern uintmax_t wcstoumax(const wchar_t *_RESTRICT_KYWD,
         wchar_t **_RESTRICT_KYWD, int);
-#else
-extern intmax_t  imaxabs();
-extern imaxdiv_t imaxdiv();
-extern intmax_t  strtoimax();
-extern uintmax_t strtoumax();
-extern intmax_t  wcstoimax();
-extern uintmax_t wcstoumax();
-#endif
 
 #endif /* (!defined(_XOPEN_SOURCE) || defined(_XPG6)) ... */
 
 #ifdef __cplusplus
 }