Fix build in Visual Studio (2013) #111

Open
chosenofbear wants to merge 5 commits from chosenofbear/master into master
6 changed files with 16 additions and 20 deletions
Showing only changes of commit 55315a5258 - Show all commits

View File

@ -19,10 +19,6 @@
** along with mkxp. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef _MSC_VER
#define _CRT_SECURE_NO_DEPRECATE
#endif
#include "etc.h"
#include "binding-util.h"
#include "serializable-binding.h"

View File

@ -19,10 +19,6 @@
** along with mkxp. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef _MSC_VER
#define _CRT_SECURE_NO_DEPRECATE
#endif
#include "font.h"
#include "binding-util.h"
#include "binding-types.h"

View File

@ -19,10 +19,6 @@
** along with mkxp. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef _MSC_VER
#define _CRT_SECURE_NO_DEPRECATE
#endif
#include "input.h"
#include "sharedstate.h"
#include "exception.h"

View File

@ -1,7 +1,17 @@
#ifndef MKXP_CROSSPLATFORM_H
#define MKXP_CROSSPLATFORM_H
#ifdef _MSC_VER
#define snprintf _snprintf
//#define _CRT_SECURE_NO_DEPRECATE //should be defined in binding-mri's preprocessor for vsnprintf, fopen
#include <direct.h>
#ifndef snprintf
#define snprintf _snprintf
#endif
#ifndef chdir
#define chdir _chdir
#endif
#endif
#endif
#endif //MKXP_CROSSPLATFORM_H

View File

@ -22,9 +22,8 @@
#ifndef EXCEPTION_H
#define EXCEPTION_H
#ifdef _MSC_VER
#define _CRT_SECURE_NO_DEPRECATE
#endif
#include "crossplatform.h"
#include <string>
#include <stdio.h>
#include <stdarg.h>

View File

@ -22,9 +22,8 @@
#ifndef UTIL_H
#define UTIL_H
#ifdef _MSC_VER
#define _CRT_SECURE_NO_DEPRECATE
#endif
#include "crossplatform.h"
#include <stdio.h>
#include <string>
#include <algorithm>