[Image-SIG] compiling 1.1.2 on windows

image-sig@lee-morgan.net image-sig@lee-morgan.net
08 Aug 2001 13:02:12 +1000


Hi,

I think this may have been mentioned before but anyway, to get pil to
compile on win32(ME) MSVC6 I had to make the following src changes as
basestd.h now typedefs UINT32.

Cheers

Lee


*** c:/WINDOWS/TEMP/ImPlatform.h	Mon Jul 30 22:38:56 2001
--- c:/WINDOWS/TEMP/ImPlatform.h-153105ooV	Mon Jul 30 22:38:56 2001
***************
*** 26,35 ****
  #define	INT16 short /* most things works just fine anyway... */
  #endif
  
- #ifdef WIN32
- #include <basetsd.h>
- #else
- 
  #if SIZEOF_SHORT == 4
  #define	INT32 short
  #elif SIZEOF_INT == 4
--- 26,31 ----
***************
*** 44,53 ****
  #define	INT64 long
  #endif
  
- #define	UINT32 unsigned INT32
- 
- #endif WIN32
- 
  #if SIZEOF_FLOAT == 4
  #define	FLOAT32 float
  #elif SIZEOF_DOUBLE == 4
--- 40,45 ----
***************
*** 64,67 ****
  #define	UINT8 unsigned char
  
  #define	UINT16 unsigned INT16
! //#define	UINT32 unsigned INT32
--- 56,59 ----
  #define	UINT8 unsigned char
  
  #define	UINT16 unsigned INT16
! #define	UINT32 unsigned INT32



*** c:/WINDOWS/TEMP/Dib.c	Mon Jul 30 23:09:28 2001
--- c:/WINDOWS/TEMP/Dib.c-153105cRu	Mon Jul 30 23:09:28 2001
***************
*** 19,27 ****
   * See the README file for information on usage and redistribution.
   */
  
- #ifdef WIN32
  
  #include "Imaging.h"
  
  #include "ImDib.h"
  
--- 19,28 ----
   * See the README file for information on usage and redistribution.
   */
  
  
  #include "Imaging.h"
+ 
+ #ifdef WIN32
  
  #include "ImDib.h"
  

-- 
image-sig