[Sumover-dev] [svn commit] r4454 - common/trunk/src

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Jun 4 15:03:03 BST 2009


Author: piers
Date: Thu Jun  4 15:03:03 2009
New Revision: 4454

Modified:
   common/trunk/src/config_win32.h

Log:
Added another check for HAVE_STDINT_H when trying to compile with mingw

Modified: common/trunk/src/config_win32.h
==============================================================================
--- common/trunk/src/config_win32.h	(original)
+++ common/trunk/src/config_win32.h	Thu Jun  4 15:03:03 2009
@@ -89,6 +89,10 @@
  * the definitions below are valid for 32-bit architectures and will have to
  * be adjusted for 16- or 64-bit architectures
  */
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#else
 typedef unsigned __int8		uint8_t;
 typedef unsigned __int16	uint16_t;
 typedef unsigned __int32	uint32_t;
@@ -97,6 +101,9 @@
 typedef __int16		int16_t;
 typedef __int32		int32_t;
 typedef __int64		int64_t;
+typedef int			ssize_t;
+#endif
+
 typedef unsigned long	in_addr_t;
 
 #ifndef TRUE
@@ -137,7 +144,6 @@
 #define IN_MULTICAST(i)	IN_CLASSD(i)
 
 typedef char	*caddr_t;
-typedef int	ssize_t;
 
 typedef struct iovec {
 	caddr_t	iov_base;
@@ -196,7 +202,10 @@
 #define strcasecmp  _stricmp
 #define strncasecmp _strnicmp
 
+#ifndef RegGetValue
 int  RegGetValue(HKEY *, char *, char*, char*, int);
+#endif
+
 void ShowMessage(int level, char *msg);
 
 #define bcopy(from,to,len) memcpy(to,from,len)



More information about the Sumover-dev mailing list