Skip to content

Commit

Permalink
Get rid of __STDC_FORMAT_MACROS, __STDC_LIMIT_MACROS and __STDC_CONST…
Browse files Browse the repository at this point in the history
…ANT_MACROS
  • Loading branch information
EmployedRussian authored and smx-smx committed Feb 26, 2023
1 parent 1a39fb5 commit e855d0c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
7 changes: 0 additions & 7 deletions sysdeps/generic/inttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ typedef wchar_t __gwchar_t;
# define ____gwchar_t_defined 1
#endif


/* The ISO C99 standard specifies that these macros must only be
defined if explicitly requested. */
#if !defined __cplusplus || defined __STDC_FORMAT_MACROS

# if __WORDSIZE == 64
# define __PRI64_PREFIX "l"
# define __PRIPTR_PREFIX "l"
Expand Down Expand Up @@ -268,8 +263,6 @@ typedef wchar_t __gwchar_t;
# define SCNuPTR __PRIPTR_PREFIX "u"
# define SCNxPTR __PRIPTR_PREFIX "x"

#endif /* C++ && format macros */


__BEGIN_DECLS

Expand Down
13 changes: 0 additions & 13 deletions sysdeps/generic/stdint.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ typedef unsigned long long int uintmax_t;
#endif


/* The ISO C99 standard specifies that in C++ implementations these
macros should only be defined if explicitly requested. */
#if !defined __cplusplus || defined __STDC_LIMIT_MACROS

# if __WORDSIZE == 64
# define __INT64_C(c) c ## L
# define __UINT64_C(c) c ## UL
Expand Down Expand Up @@ -279,13 +275,6 @@ typedef unsigned long long int uintmax_t;
# define WINT_MIN (0u)
# define WINT_MAX (4294967295u)

#endif /* C++ && limit macros */


/* The ISO C99 standard specifies that in C++ implementations these
should only be defined if explicitly requested. */
#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS

/* Signed. */
# define INT8_C(c) c
# define INT16_C(c) c
Expand Down Expand Up @@ -315,6 +304,4 @@ typedef unsigned long long int uintmax_t;
# define UINTMAX_C(c) c ## ULL
# endif

#endif /* C++ && constant macros */

#endif /* stdint.h */

0 comments on commit e855d0c

Please sign in to comment.