plugin: restore sprintf_s on windows and hopefully fix vs201n compilation

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5684 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut 2013-06-28 17:11:16 +00:00
parent 3c7167be50
commit d9af23c946
7 changed files with 21 additions and 0 deletions

View File

@ -18,6 +18,9 @@
#include "CDVD.h"
#include "svnrev.h"
#ifdef _MSC_VER
#define snprintf sprintf_s
#endif
static char libraryName[256];
const unsigned char version = PS2E_CDVD_VERSION;

View File

@ -27,6 +27,9 @@ const u8 version = PS2E_FW_VERSION;
const u8 revision = 0;
const u8 build = 7; // increase that with each version
#ifdef _MSC_VER
#define snprintf sprintf_s
#endif
static char libraryName[256];
string s_strIniPath="inis";

View File

@ -25,6 +25,9 @@ const u8 version = PS2E_PAD_VERSION;
const u8 revision = 0;
const u8 build = 1; // increase that with each version
#ifdef _MSC_VER
#define snprintf sprintf_s
#endif
static char libraryName[256];
string s_strIniPath="inis";
string s_strLogPath="logs";

View File

@ -25,6 +25,9 @@ const unsigned char version = PS2E_USB_VERSION;
const unsigned char revision = 0;
const unsigned char build = 7; // increase that with each version
#ifdef _MSC_VER
#define snprintf sprintf_s
#endif
static char libraryName[256];
USBcallback USBirq;

View File

@ -37,6 +37,9 @@ const unsigned char version = PS2E_DEV9_VERSION;
const unsigned char revision = 0;
const unsigned char build = 5; // increase that with each version
#ifdef _MSC_VER
#define snprintf sprintf_s
#endif
static char libraryName[256];
// Our IRQ call.

View File

@ -31,6 +31,9 @@
#ifdef __LINUX__
#include <unistd.h>
#endif
#ifdef _MSC_VER
#define snprintf sprintf_s
#endif
PADconf* conf;
char libraryName[256];

View File

@ -22,6 +22,9 @@
#include "svnrev.h"
#ifdef _MSC_VER
#define snprintf sprintf_s
#endif
// PCSX2 expects ASNI, not unicode, so this MUST always be char...
static char libraryName[256];