Przeglądaj źródła

Fixed a gcc compilation error and some warnings.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11046 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 18 lat temu
rodzic
commit
137877aebf
3 zmienionych plików z 18 dodań i 1 usunięć
  1. 10 1
      src/map/clif.h
  2. 7 0
      src/map/intif.h
  3. 1 0
      src/map/pc.c

+ 10 - 1
src/map/clif.h

@@ -10,10 +10,19 @@ struct storage;
 struct guild_storage;
 //#include "map.h"
 struct block_list;
+struct unit_data;
 struct map_session_data;
 struct homun_data;
-struct unit_data;
+struct pet_data;
+struct npc_data;
+struct chat_data;
 struct flooritem_data;
+struct skill_unit;
+struct vending;
+struct party;
+struct party_data;
+struct guild;
+#include <stdarg.h>
 
 // server->client protocol version
 // v7 - 2005-04-11aSakexe+ - 0x229, 0x22a, 0x22b, 0x22c

+ 7 - 0
src/map/intif.h

@@ -4,6 +4,13 @@
 #ifndef _INTIF_H_
 #define _INFIF_H_
 
+//#include "../common/mmo.h"
+struct party_member;
+struct guild_member;
+struct guild_position;
+struct s_pet;
+struct s_homunculus;
+
 int intif_parse(int fd);
 
 int intif_GMmessage(const char* mes,int len,int flag);

+ 1 - 0
src/map/pc.c

@@ -35,6 +35,7 @@
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <time.h>