Skip to content

Commit a087ad1

Browse files
committed
cleanup useless Windows warnings, so we can see the important stuff
1 parent ba4e7f5 commit a087ad1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

fio-stl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,11 @@ Compiler Helpers - Deprecation, Alignment, Inlining, Memory Barriers
192192
#endif
193193

194194
#if _MSC_VER
195+
196+
#undef _CRT_SECURE_NO_WARNINGS
197+
/** We define this because Microsoft's naming scheme isn't portable */
198+
#define _CRT_SECURE_NO_WARNINGS 1
199+
195200
#define inline __inline
196201
#define __thread __declspec(thread)
197202
#elif !defined(__clang__) && !defined(__GNUC__)

fio-stl/000 core.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ Compiler Helpers - Deprecation, Alignment, Inlining, Memory Barriers
155155
#endif
156156

157157
#if _MSC_VER
158+
159+
#undef _CRT_SECURE_NO_WARNINGS
160+
/** We define this because Microsoft's naming scheme isn't portable */
161+
#define _CRT_SECURE_NO_WARNINGS 1
162+
158163
#define inline __inline
159164
#define __thread __declspec(thread)
160165
#elif !defined(__clang__) && !defined(__GNUC__)

0 commit comments

Comments
 (0)