Skip to content

Commit 615ae15

Browse files
committed
Check EXIT_FAILURE in cstdlib
1 parent 158e165 commit 615ae15

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/cpp2util.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@
301301
#include <vector>
302302
#endif
303303

304-
// Missing with MSVC
305-
#ifndef EXIT_FAILURE
306-
#define EXIT_FAILURE 1
307-
#endif
304+
#include <cstdlib>
305+
// #ifndef EXIT_FAILURE
306+
// #define EXIT_FAILURE 1
307+
// #endif
308308

309309
// cpp2util.h uses signed integer types for indices and container sizes
310310
// so disable clang signed-to-unsigned conversion warnings in this header.

0 commit comments

Comments
 (0)