summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-01-25 11:25:24 +0000
committereivind <eivind@FreeBSD.org>1999-01-25 11:25:24 +0000
commitd40252ae771c03606aef5bd872ac676c0492eb70 (patch)
treee5ed867f7bc04ea079bfa49a6ec150896b364642 /usr.bin
parente3cbd0c0a226f7b2e567b85a09b273b5bf6fe945 (diff)
downloadFreeBSD-src-d40252ae771c03606aef5bd872ac676c0492eb70.zip
FreeBSD-src-d40252ae771c03606aef5bd872ac676c0492eb70.tar.gz
Use __XSTRING() from cdefs.h instead of rolling my own.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/xlint/xlint/xlint.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c
index 5e3b0fd..a341861 100644
--- a/usr.bin/xlint/xlint/xlint.c
+++ b/usr.bin/xlint/xlint/xlint.c
@@ -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__");
OpenPOWER on IntegriCloud