[Plib-devel] plib-1.8.5: compiling on OSX 10.5.5
Brought to you by:
sjbaker
From: Andy C. <and...@gm...> - 2008-11-23 19:46:19
|
I was not able to compile plib-1.8.5 on OSX due to the fact that uint is not defined by default on this OS. The following patch allows plib-1.8.5 to compile: diff -ur ./src/ssg/ssgLoadFLT.cxx ../plib-1.8.5-apple/src/ssg/ssgLoadFLT.cxx --- ./src/ssg/ssgLoadFLT.cxx 2008-03-10 22:06:23.000000000 -0400 +++ ../plib-1.8.5-apple/src/ssg/ssgLoadFLT.cxx 2008-11-23 14:32:25.000000000 -0500 @@ -142,7 +142,7 @@ typedef unsigned char ubyte; -#ifdef UL_WIN32 +#if defined(UL_WIN32) || defined(__APPLE__) typedef unsigned short ushort; typedef unsigned int uint; #endif |