Use getopt replacement

This commit is contained in:
TwinAphex51224 2011-11-30 16:19:12 +01:00
parent b46fb60a6e
commit 8d8fb44c18
5 changed files with 9 additions and 6 deletions

View File

@ -39,11 +39,11 @@ INCDIRS = -I. -Icommon
MKFSELF_NPDRM = $(CELL_SDK)/$(HOST_DIR)/bin/make_fself_npdrm
MKPKG_NPDRM = $(CELL_SDK)/$(HOST_DIR)/bin/make_package_npdrm
OBJ = ssnes.o driver.o settings.o dynamic.o message.o rewind.o movie.o autosave.o gfx/gfx_common.o gfx/gl.c gfx/shader_cg.c gfx/snes_state.c ups.o bps.o strl.o screenshot.o thread.o audio/hermite.o
OBJ = getopt.o ssnes.o driver.o settings.o dynamic.o message.o rewind.o movie.o autosave.o gfx/gfx_common.o gfx/gl.c gfx/shader_cg.c gfx/snes_state.c ups.o bps.o strl.o screenshot.o thread.o audio/hermite.o
LIBS = -ldbgfont -lPSGL -lgcm_cmd -lgcm_sys_stub -lresc_stub libsnes.a -lm -lio_stub -lfs_stub -lsysutil_stub -lsysmodule_stub -laudio_stub -lnet_stub -lpthread
DEFINES = -DHAVE_DYNAMIC=1 -DHAVE_DYLIB=1 -DHAVE_OPENGL=1 -DHAVE_CG=1 -DHAVE_FBO=1
DEFINES = -DHAVE_DYNAMIC=1 -DHAVE_DYLIB=1 -DHAVE_OPENGL=1 -DHAVE_CG=1 -DHAVE_FBO=1 -D__CELLOS_LV2__
# Wrap it up, son!
#LIBS += -Wl,-wrap,fopen -Wl,-wrap,fclose -Wl,-wrap,fwrite -Wl,-wrap,fread -Wl,-wrap,fseek -Wl,-wrap,ftell -Wl,-wrap,fflush -Wl,-wrap,rewind -Wl,-wrap,fgetpos -Wl,-wrap,fsetpos -Wl,-wrap,setbuf -Wl,-wrap,setvbuf -Wl,-wrap,ungetc -Wl,-wrap,feof

View File

@ -19,7 +19,7 @@
#define __DYNAMIC_H
#include <stdbool.h>
#include <libsnes.hpp>
#include "libsnes.hpp"
void init_dlsym(void);
void uninit_dlsym(void);

View File

@ -39,8 +39,10 @@
#include "audio/hermite.h"
#ifndef _WIN32
#if !defined(_WIN32)
#if !defined(__CELLOS_LV2__)
#include <sys/param.h> // MAXPATHLEN
#endif
#else
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License along with SSNES.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_NETPLAY
#ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
@ -747,3 +747,4 @@ void netplay_post_frame(netplay_t *handle)
}
}
#endif

View File

@ -21,7 +21,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <libsnes.hpp>
#include "libsnes.hpp"
void input_poll_net(void);
int16_t input_state_net(bool port, unsigned device, unsigned index, unsigned id);