projects
/
matthijs
/
ABM2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75d4212
)
* Include windows.h by default on windows, most stuff probably needs it.
master
author
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Mon, 11 Jun 2007 21:17:17 +0000
(23:17 +0200)
committer
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Mon, 11 Jun 2007 21:17:17 +0000
(23:17 +0200)
ABM2/porting.h
patch
|
blob
|
history
diff --git
a/ABM2/porting.h
b/ABM2/porting.h
index dfa9a33621b9c164b13a6f1e71f79e41de5cba42..3a514f5c7c1ba614a8bba447f9adb76a6f9f89a3 100644
(file)
--- a/
ABM2/porting.h
+++ b/
ABM2/porting.h
@@
-1,7
+1,9
@@
#if !defined(AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)
#define AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_
-#ifndef WIN32
+#ifdef WIN32
+ #include <windows.h>
+#else
#define vsprintf_s vsnprintf
#define sprintf_s snprintf
#define strcpy_s(dst, size, src) strncpy(dst, src, size)