Bläddra i källkod

* Changed grfio.c include order and moved zlib include from the header to the source.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14887 54d463be-8e91-2dee-dedb-b68131a5f0ec
flaviojs 14 år sedan
förälder
incheckning
612e016e59
3 ändrade filer med 8 tillägg och 9 borttagningar
  1. 2 0
      Changelog-Trunk.txt
  2. 6 7
      src/common/grfio.c
  3. 0 2
      src/common/grfio.h

+ 2 - 0
Changelog-Trunk.txt

@@ -1,5 +1,7 @@
 Date	Added
 
+2011/07/06
+	* Changed grfio.c include order and moved zlib include from the header to the source. [FlavioJS]
 2011/07/05
 	* CMake: split txt and sql variants of login-server and map-server. [FlavioJS]
 2011/07/04

+ 6 - 7
src/common/grfio.c

@@ -1,19 +1,18 @@
 // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
 // For more information, see LICENCE in the main folder
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
-
-#include "grfio.h"
-
 #include "../common/cbasetypes.h"
 #include "../common/showmsg.h"
 #include "../common/malloc.h"
 #include "../common/strlib.h"
 #include "../common/utils.h"
+#include "grfio.h"
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <zlib.h>
 
 //----------------------------
 //	file entry table struct

+ 0 - 2
src/common/grfio.h

@@ -4,8 +4,6 @@
 #ifndef	_GRFIO_H_
 #define	_GRFIO_H_
 
-#include <zlib.h>
-
 void grfio_init(char*);			// GRFIO Initialize
 void grfio_final(void);			// GRFIO Finalize
 void* grfio_reads(char*,int*);	// GRFIO data file read & size get