diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-15 21:33:56 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-15 23:01:32 +0000 |
commit | 9eacfafff75c5520a0a6f16132c4ac13db24a634 (patch) | |
tree | a55a6873a5922abecf0b4ece95c867c9bcbf85af /toxcore/ccompat.h | |
parent | c0b4cd156f79f1c7f3ce747a27cae16a78549cc6 (diff) |
Set C++11/C99 flag manually in older cmake on not-msvc.
These flags are needed so the code actually compiles, so can't only be
set on Travis.
Diffstat (limited to 'toxcore/ccompat.h')
-rw-r--r-- | toxcore/ccompat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/ccompat.h b/toxcore/ccompat.h index f4aa1d89..5b37a294 100644 --- a/toxcore/ccompat.h +++ b/toxcore/ccompat.h | |||
@@ -38,7 +38,7 @@ | |||
38 | 38 | ||
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #ifndef __cplusplus | 41 | #if !defined(__cplusplus) || __cplusplus < 201103L |
42 | #define nullptr NULL | 42 | #define nullptr NULL |
43 | #endif | 43 | #endif |
44 | 44 | ||