Use __XSTRING() from cdefs.h instead of rolling my own.
This commit is contained in:
parent
5ca1fa1ed0
commit
398eda2c23
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43191
@ -284,12 +284,6 @@ usage()
|
||||
terminate(-1);
|
||||
}
|
||||
|
||||
/* Transform the value of a preprocessor symbol to a string, by using
|
||||
ANSI features of the preprocessor. STRINGIZEINT() is for internal
|
||||
use. */
|
||||
#define STRINGIZEINT(a) #a
|
||||
#define STRINGIZE(a) STRINGIZEINT(a)
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
@ -332,7 +326,7 @@ main(argc, argv)
|
||||
appcstrg(&cppflags, "-C");
|
||||
appcstrg(&cppflags, "-Wcomment");
|
||||
#ifdef __FreeBSD__
|
||||
appcstrg(&cppflags, "-D__FreeBSD__=" STRINGIZE(__FreeBSD__));
|
||||
appcstrg(&cppflags, "-D__FreeBSD__=" __XSTRING(__FreeBSD__));
|
||||
#else
|
||||
# error "This ain't NetBSD. You lose!"
|
||||
appcstrg(&cppflags, "-D__NetBSD__");
|
||||
|
Loading…
Reference in New Issue
Block a user