From 9eacfafff75c5520a0a6f16132c4ac13db24a634 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 15 Jul 2018 21:33:56 +0000 Subject: 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. --- toxcore/ccompat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/ccompat.h') 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 @@ #endif -#ifndef __cplusplus +#if !defined(__cplusplus) || __cplusplus < 201103L #define nullptr NULL #endif -- cgit v1.2.3