update crossplatform.h
This commit is contained in:
		
							parent
							
								
									0a6ede669b
								
							
						
					
					
						commit
						55315a5258
					
				
					 6 changed files with 16 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 //MKXP_CROSSPLATFORM_H
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue