* dbtest.c: Test for __STDC__ defined, not nonzero, to decide whether to use
authorKen Raeburn <raeburn@mit.edu>
Wed, 8 May 2002 19:47:43 +0000 (19:47 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 8 May 2002 19:47:43 +0000 (19:47 +0000)
stdarg.h or varargs.h.
(err): Similarly for function signature.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14436 dc483132-0cff-0310-8789-dd5450dbe970

src/util/db2/test/ChangeLog
src/util/db2/test/dbtest.c

index e9892753955b9b762c180ab25997f2a605aff17e..8794fb2bf54ba825055d7921996c62832c8fce4c 100644 (file)
@@ -1,3 +1,8 @@
+
+       * dbtest.c: Test for __STDC__ defined, not nonzero, to decide
+       whether to use stdarg.h or varargs.h.
+       (err): Similarly for function signature.
+
 2002-02-19  Ken Raeburn  <raeburn@mit.edu>
 
        * run.test: Use "/bin/." instead of "/bin" in find commands in
index b5adc060a12728f6981c47114c95a70cf1bf9090..ca18378ee036df18f95aeecf2482c963eef54de8 100644 (file)
@@ -735,14 +735,14 @@ usage()
        exit(1);
 }
 
-#if __STDC__
+#ifdef __STDC__
 #include <stdarg.h>
 #else
 #include <varargs.h>
 #endif
 
 void
-#if __STDC__
+#ifdef __STDC__
 err(const char *fmt, ...)
 #else
 err(fmt, va_alist)
@@ -751,7 +751,7 @@ err(fmt, va_alist)
 #endif
 {
        va_list ap;
-#if __STDC__
+#ifdef __STDC__
        va_start(ap, fmt);
 #else
        va_start(ap);