Преглед изворни кода

- Applied the suggested fixes by Joshuaali to fix the compiling of the sql map server on Win32 systems.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5308 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex пре 19 година
родитељ
комит
7429b0cd57
3 измењених фајлова са 8 додато и 6 уклоњено
  1. 3 0
      Changelog-Trunk.txt
  2. 3 1
      src/common/cbasetypes.h
  3. 2 5
      src/mysql/my_global.h

+ 3 - 0
Changelog-Trunk.txt

@@ -5,6 +5,9 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EV
 GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
 
 2006/02/17
+	* Applied the suggested fixes by Joshuaali to fix the compiling of the sql
+	  map server on Win32 systems. [Skotlex]
+	- note that irc.c is still uncompilable, but the rest "should be fine" now.
 	* Fixed the memory leak on opt_2str as pointed out by End of Exam [Skotlex]
 	* Fixed a few char SQL memory leaks as pointed out by End of Exam [Skotlex]
 2006/02/16

+ 3 - 1
src/common/cbasetypes.h

@@ -65,9 +65,11 @@ typedef unsigned int	uint;	// don't use
 typedef   signed long	slong;	// don't use (only for ie. file-io)
 typedef unsigned long	ulong;	// don't use
 
+#ifndef WIN32
 typedef char*           pchar;
-typedef const char*     cchar;
 typedef unsigned char*	puchar;
+#endif
+typedef const char*     cchar;
 typedef void*			ptr;
 typedef int*			pint;
 

+ 2 - 5
src/mysql/my_global.h

@@ -497,11 +497,8 @@ typedef char	pbool;		/* Mixed prototypes can take char */
 typedef short	pshort;		/* Mixed prototypes can take short int */
 typedef float	pfloat;		/* Mixed prototypes can take float */
 #else
-//These types already exist in WinNT systems... 
-//...but what do we do about Win9X ones? [Skotlex]
-//typedef int	pchar;		/* Mixed prototypes can't take char */
-//typedef uint	puchar;		/* Mixed prototypes can't take char */
-#include <winnt.h>
+typedef int	pchar;		/* Mixed prototypes can't take char */
+typedef uint	puchar;		/* Mixed prototypes can't take char */
 typedef int	pbool;		/* Mixed prototypes can't take char */
 typedef int	pshort;		/* Mixed prototypes can't take short int */
 typedef double	pfloat;		/* Mixed prototypes can't take float */