]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Protect against multiple inclusion.
authorJim Meyering <jim@meyering.net>
Sun, 25 Sep 2005 06:14:33 +0000 (06:14 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 25 Sep 2005 06:14:33 +0000 (06:14 +0000)
lib/strnumcmp-in.h

index 1950473139ca197703d8b2a35df1ea888e1afbc6..b80623552ef469116126269f65b18b8fec336af5 100644 (file)
 
 /* Written by Mike Haertel.  */
 
-#include "strnumcmp.h"
+#ifndef STRNUMCMP_IN_H
+# define STRNUMCMP_IN_H 1
 
-#include <stddef.h>
+# include "strnumcmp.h"
 
-#define NEGATION_SIGN   '-'
-#define NUMERIC_ZERO    '0'
+# include <stddef.h>
+
+# define NEGATION_SIGN   '-'
+# define NUMERIC_ZERO    '0'
 
 /* ISDIGIT differs from isdigit, as follows:
    - Its arg may be any int or unsigned int; it need not be an unsigned char.
@@ -33,7 +36,7 @@
    POSIX says that only '0' through '9' are digits.  Prefer ISDIGIT to
    ISDIGIT_LOCALE unless it's important to use the locale's definition
    of `digit' even when the host does not conform to POSIX.  */
-#define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)
+# define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)
 
 
 /* Compare strings A and B containing decimal fractions < 1.
@@ -239,3 +242,5 @@ numcompare (char const *a, char const *b,
       return tmp;
     }
 }
+
+#endif