about summary refs log tree commit diff
path: root/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-08-26 21:44:03 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-08-26 21:44:03 +0000
commitd3a5144876c052c721c19f85f8275174630f9461 (patch)
treec80c9a1bcf36cc4f7a6d41e8526a1bc0ba110bfd /other
parent144f2c5647e0139208e4da9b7ae900281b0f03d1 (diff)
downloadnetpbm-mirror-d3a5144876c052c721c19f85f8275174630f9461.tar.gz
netpbm-mirror-d3a5144876c052c721c19f85f8275174630f9461.tar.xz
netpbm-mirror-d3a5144876c052c721c19f85f8275174630f9461.zip
Replace macros with inline functions
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@386 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other')
-rw-r--r--other/pamx/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/other/pamx/window.c b/other/pamx/window.c
index 1a6e510b..2eb48241 100644
--- a/other/pamx/window.c
+++ b/other/pamx/window.c
@@ -6,6 +6,8 @@
    See COPYRIGHT file for copyright information.
 */
 
+#define _BSD_SOURCE    /* Make sure strcaseeq() is in nstring.h */
+
 #include <assert.h>
 #include <ctype.h>
 #include <signal.h>
@@ -555,7 +557,7 @@ visualClassFromName(const char * const name) {
     bool found;
     
     for (a = 0, found = FALSE; VisualClassName[a].name; ++a) {
-        if (STRCASEEQ(VisualClassName[a].name, name)) {
+        if (strcaseeq(VisualClassName[a].name, name)) {
             /* Check for uniqueness.  We special-case StaticGray
                because we have two spellings but they are unique if
                we find either.