mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
localedef: Bootstrap better
Declare these functions in a macro-safe way instead of relying on ifdefs. Sponsored by: Netflix
This commit is contained in:
parent
345fd21a6a
commit
d28bbfa271
1 changed files with 8 additions and 11 deletions
|
|
@ -40,17 +40,14 @@
|
|||
/*
|
||||
* On macOS isxdigit(), etc are defined in _ctype.h, but we have to include the
|
||||
* target _ctype.h so that localedef uses the correct values.
|
||||
* To fix macOS bootstrap, provide a declaration of isxdigit(), etc. here.
|
||||
* However, only do so if they are not already define as a macro (as is the
|
||||
* case on Linux).
|
||||
* To fix macOS bootstrap, provide a declaration of isxdigit(), etc. here in
|
||||
* a macro-safe way.
|
||||
*/
|
||||
#ifndef isxdigit
|
||||
__BEGIN_DECLS
|
||||
int isalpha(int);
|
||||
int isascii(int);
|
||||
int isdigit(int);
|
||||
int isgraph(int);
|
||||
int islower(int);
|
||||
int isxdigit(int);
|
||||
int (isalpha)(int);
|
||||
int (isascii)(int);
|
||||
int (isdigit)(int);
|
||||
int (isgraph)(int);
|
||||
int (islower)(int);
|
||||
int (isxdigit)(int);
|
||||
__END_DECLS
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue