Fixed compilation on linux

This commit is contained in:
yabause 2009-01-09 00:02:57 +00:00
parent 0e4367f2a2
commit 86aa5d9800
6 changed files with 107 additions and 97 deletions

View File

@ -43,7 +43,9 @@ libdesmume_a_SOURCES = \
utils/ConvertUTF.c utils/ConvertUTF.h utils/guid.cpp utils/guid.h \ utils/ConvertUTF.c utils/ConvertUTF.h utils/guid.cpp utils/guid.h \
utils/md5.cpp utils/md5.h utils/valuearray.h utils/xstring.cpp utils/xstring.h \ utils/md5.cpp utils/md5.h utils/valuearray.h utils/xstring.cpp utils/xstring.h \
utils/decrypt/crc.cpp utils/decrypt/crc.h utils/decrypt/decrypt.cpp \ utils/decrypt/crc.cpp utils/decrypt/crc.h utils/decrypt/decrypt.cpp \
utils/decrypt/decrypt.h utils/decrypt/header.cpp utils/decrypt/header.h utils/decrypt/decrypt.h utils/decrypt/header.cpp utils/decrypt/header.h \
addons.c addons.h \
addons/compactFlash.cpp addons/gbagame.cpp addons/none.cpp addons/rumblepak.cpp
if HAVE_GDB_STUB if HAVE_GDB_STUB
libdesmume_a_SOURCES += gdbstub.h libdesmume_a_SOURCES += gdbstub.h
endif endif

View File

@ -28,6 +28,11 @@
#include "types.h" #include "types.h"
#include "debug.h" #include "debug.h"
#ifdef __GNUC__
#include <limits.h>
#define MAX_PATH PATH_MAX
#endif
typedef struct typedef struct
{ {
// The name of the plugin, this name will appear in the plugins list // The name of the plugin, this name will appear in the plugins list

View File

@ -22,6 +22,7 @@
*/ */
#include "../addons.h" #include "../addons.h"
#include <string.h>
#ifdef EXPERIMENTAL_GBASLOT #ifdef EXPERIMENTAL_GBASLOT
#define DEBUG #define DEBUG
@ -31,7 +32,6 @@
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -23,6 +23,7 @@
#include "../addons.h" #include "../addons.h"
#include "../mem.h" #include "../mem.h"
#include <string.h>
#include "../MMU.h" #include "../MMU.h"
u8 *GBArom = NULL; u8 *GBArom = NULL;

View File

@ -22,6 +22,7 @@
*/ */
#include "../addons.h" #include "../addons.h"
#include <string.h>
BOOL None_init(void) { return (TRUE); }; BOOL None_init(void) { return (TRUE); };
void None_reset(void) {}; void None_reset(void) {};

View File

@ -24,6 +24,7 @@
#include "../addons.h" #include "../addons.h"
#include "../mem.h" #include "../mem.h"
#include "../MMU.h" #include "../MMU.h"
#include <string.h>
u8 rumble_hdr[0xC0]; u8 rumble_hdr[0xC0];