summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-11-11 10:22:52 -0800
committerJeremy Huddleston <jeremyhu@apple.com>2011-11-11 10:22:52 -0800
commit381c9efec4c066d984514d226b61b3360741aea2 (patch)
treecdef2583a68a86eb323a258e074fe10ccd7c9e65
parent1da600011b7e89981592308843ce7230fa5f87f1 (diff)
downloadxorg-lib-libfontenc-381c9efec4c066d984514d226b61b3360741aea2.tar.gz
Include strings.h for strcasecmp
Our minimum requirement for X11 is currently Unix98. Unix98 provides strcasecmp in <strings.h>. This commit fixes implicit declarations of this function on systems that closely adhere to the standard. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--src/encparse.c5
-rw-r--r--src/fontenc.c4
2 files changed, 1 insertions, 8 deletions
diff --git a/src/encparse.c b/src/encparse.c
index 03b2afa..cbcac80 100644
--- a/src/encparse.c
+++ b/src/encparse.c
@@ -28,11 +28,8 @@ THE SOFTWARE.
to be pure ASCII. Bloody ``Code Set Independence''. */
#include <string.h>
-#include <stdio.h>
-
-#if defined(__SCO__) || defined(__UNIXWARE__)
#include <strings.h>
-#endif
+#include <stdio.h>
#include <stdlib.h>
diff --git a/src/fontenc.c b/src/fontenc.c
index 837c925..fb56ff1 100644
--- a/src/fontenc.c
+++ b/src/fontenc.c
@@ -23,11 +23,7 @@ THE SOFTWARE.
/* Backend-independent encoding code */
#include <string.h>
-
-#if defined(__SCO__) || defined(__UNIXWARE__)
#include <strings.h>
-#endif
-
#include <stdlib.h>
#define FALSE 0