libextractor
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libextractor] [PATCH] minor OS X build warning fixes


From: Heikki Lindholm
Subject: [libextractor] [PATCH] minor OS X build warning fixes
Date: Sun, 03 Dec 2006 13:40:16 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923)

Nothing truly serious, makes compilation neater on Mac OS X.

-- Heikki Lindholm
Index: src/plugins/pdfextractor.c
===================================================================
--- src/plugins/pdfextractor.c  (revision 3860)
+++ src/plugins/pdfextractor.c  (working copy)
@@ -236,7 +236,9 @@
 #define MAX_STEPS 256
 
 #define IS_NL(c) ((c == '\n') || (c == '\r'))
+#ifndef MIN
 #define MIN(a,b) ((a) < (b) ? (a) : (b)) 
+#endif
 #define SKIP(k,p,b,s) while ( (p<s) && (NULL != strchr(k, b[p])) ) p++;
 
 struct EXTRACTOR_Keywords * 
Index: src/main/getopt.c
===================================================================
--- src/main/getopt.c   (revision 3860)
+++ src/main/getopt.c   (working copy)
@@ -234,6 +234,9 @@
    and has done so at least since version 2.4.5. -- rms.  */
 extern int strlen (const char *);
 #endif /* not __STDC__ */
+#if defined(__APPLE__)
+extern size_t strlen (const char *);
+#endif
 #endif /* __GNUC__ */
 
 #endif /* not __GNU_LIBRARY__ */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]