* HeDu (hedu@cul-ipn.uni-kiel.de) 4/94
*/
-#include "xpmi.h"
+#include "XpmI.h"
#include <ctype.h>
LFUNC(ParsePixels, int, (xpmData *data, unsigned int width,
ptr = buf;
got_one = False;
while (!got_one) {
- #ifdef macintosh // we have a strange parameter problem here
+ #if defined(macintosh) || defined(__APPLE__)
+ // we have a strange parameter problem here
ptr = strchr(ptr, '_'); // index
#else
ptr = index(ptr, '_');