diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-08-26 05:42:08 -0700 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2016-09-20 04:47:49 -0700 |
commit | 922ccb76513248c46a548694b22371306e7afc7b (patch) | |
tree | 56f82ef5b0cabf73b34f0e70ee84f65a40f870a2 | |
parent | 397796d7c74f5b4509a8dd252863b0fd522a53b0 (diff) |
Linux: avoid _BSD_SOURCE deprecation warning from gcc 6
This fixes:
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
4 files changed, 5 insertions, 5 deletions
diff --git a/src/Targets/ReleasedProducts/clientEngine_opensource_linux/clientengine_demo_x86_linux_prefix.h b/src/Targets/ReleasedProducts/clientEngine_opensource_linux/clientengine_demo_x86_linux_prefix.h index b4241ee..37ce1bc 100644 --- a/src/Targets/ReleasedProducts/clientEngine_opensource_linux/clientengine_demo_x86_linux_prefix.h +++ b/src/Targets/ReleasedProducts/clientEngine_opensource_linux/clientengine_demo_x86_linux_prefix.h @@ -12,7 +12,7 @@ // required before time.h to get tm_gmtoff in struct tm: // this is used to find standard and daylight saving offset // of the system, see timezones.cpp -#define _BSD_SOURCE 1 +#define _STANDARD_SOURCE 1 #define USE_TM_GMTOFF 1 // required for vasprintf diff --git a/src/Targets/ReleasedProducts/combiEngine_opensource_linux/combiengine_opensource_linux_prefix.h b/src/Targets/ReleasedProducts/combiEngine_opensource_linux/combiengine_opensource_linux_prefix.h index ee22a31..6cb473a 100644 --- a/src/Targets/ReleasedProducts/combiEngine_opensource_linux/combiengine_opensource_linux_prefix.h +++ b/src/Targets/ReleasedProducts/combiEngine_opensource_linux/combiengine_opensource_linux_prefix.h @@ -17,7 +17,7 @@ // required before time.h to get tm_gmtoff in struct tm: // this is used to find standard and daylight saving offset // of the system, see timezones.cpp -#define _BSD_SOURCE 1 +#define _STANDARD_SOURCE 1 #define USE_TM_GMTOFF 1 // required for vasprintf diff --git a/src/Targets/ReleasedProducts/serverEngine_opensource_linux/serverengine_opensource_linux_prefix.h b/src/Targets/ReleasedProducts/serverEngine_opensource_linux/serverengine_opensource_linux_prefix.h index df2fe16..8b45ea4 100644 --- a/src/Targets/ReleasedProducts/serverEngine_opensource_linux/serverengine_opensource_linux_prefix.h +++ b/src/Targets/ReleasedProducts/serverEngine_opensource_linux/serverengine_opensource_linux_prefix.h @@ -12,7 +12,7 @@ // required before time.h to get tm_gmtoff in struct tm: // this is used to find standard and daylight saving offset // of the system, see timezones.cpp -#define _BSD_SOURCE 1 +#define _STANDARD_SOURCE 1 #define USE_TM_GMTOFF 1 #ifdef __cplusplus diff --git a/src/platform_adapters/linux/platform_time.cpp b/src/platform_adapters/linux/platform_time.cpp index d008a91..389dfd5 100755 --- a/src/platform_adapters/linux/platform_time.cpp +++ b/src/platform_adapters/linux/platform_time.cpp @@ -11,8 +11,8 @@ */ // For tm_gmtoff on Linux. -#ifndef _BSD_SOURCE -# define _BSD_SOURCE 1 +#ifndef _STANDARD_SOURCE +# define _STANDARD_SOURCE 1 #endif #include <time.h> |