Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149716437
D45385.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
914 B
Referenced Files
None
Subscribers
None
D45385.id.diff
View Options
diff --git a/usr.bin/localedef/bootstrap/ctype.h b/usr.bin/localedef/bootstrap/ctype.h
--- a/usr.bin/localedef/bootstrap/ctype.h
+++ b/usr.bin/localedef/bootstrap/ctype.h
@@ -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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 27, 11:30 AM (6 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30425139
Default Alt Text
D45385.id.diff (914 B)
Attached To
Mode
D45385: localedef: Bootstrap better
Attached
Detach File
Event Timeline
Log In to Comment