Skip to content

Commit 41236ea

Browse files
committed
Use strcpy/itoa(snprintf) workaround only on non-Windows
1 parent 76ace21 commit 41236ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Crop source/stdafx.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@
1414
#define __max(a, b) (((a)>(b))?(a):(b))
1515

1616
#include <cstring>
17+
//KY workaround for Windows-only functions
18+
#ifndef _WIN32
1719
#define strcpy_s(t, s) strcpy(t, s)
1820
#define strcat_s(t, s) strcat(t, s)
1921
#define _itoa_s(i, a, n) snprintf(a, n, "%d", i)
22+
#endif
2023

2124
// TODO: reference additional headers your program requires here

0 commit comments

Comments
 (0)