aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stdlib/inttypes.h15
-rw-r--r--stdlib/stdlib.h6
2 files changed, 8 insertions, 13 deletions
diff --git a/stdlib/inttypes.h b/stdlib/inttypes.h
index ddcb171b09..c5fb12056e 100644
--- a/stdlib/inttypes.h
+++ b/stdlib/inttypes.h
@@ -27,17 +27,14 @@
#include <stdint.h>
/* Get a definition for wchar_t. But we must not define wchar_t itself. */
-#ifndef ____gwchar_t_defined
-# ifdef __cplusplus
-# define __gwchar_t wchar_t
-# elif defined __WCHAR_TYPE__
+#ifdef __cplusplus
+# define __gwchar_t wchar_t
+#elif defined __WCHAR_TYPE__
typedef __WCHAR_TYPE__ __gwchar_t;
-# else
-# define __need_wchar_t
-# include <stddef.h>
+#else
+# define __need_wchar_t
+# include <stddef.h>
typedef wchar_t __gwchar_t;
-# endif
-# define ____gwchar_t_defined 1
#endif
# if __WORDSIZE == 64
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index a9fd989d39..34996e3ee7 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -62,16 +62,14 @@ typedef struct
} div_t;
/* Returned by `ldiv'. */
-#ifndef __ldiv_t_defined
typedef struct
{
long int quot; /* Quotient. */
long int rem; /* Remainder. */
} ldiv_t;
-# define __ldiv_t_defined 1
-#endif
+#define __ldiv_t_defined 1
-#if defined __USE_ISOC99 && !defined __lldiv_t_defined
+#if defined __USE_ISOC99
/* Returned by `lldiv'. */
__extension__ typedef struct
{