mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Drop the definition of __EXTENSIONS__ from three files and instead
move it to compiler options if on a platform that needs it.
This commit is contained in:
+7
-1
@@ -788,7 +788,13 @@ set (_ALL_SOURCE 1)
|
||||
set (_GNU_SOURCE 1)
|
||||
set (_POSIX_PTHREAD_SEMANTICS 1)
|
||||
set (_TANDEM_SOURCE 1)
|
||||
set (__EXTENSIONS__ 1)
|
||||
endif()
|
||||
|
||||
# Solaris header files limit the visibility of non-standard extensions
|
||||
# unless __EXTENSIONS__ is defined. We need some of those
|
||||
# non-standard interfaces.
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
|
||||
add_compile_definitions(__EXTENSIONS__=1)
|
||||
endif()
|
||||
|
||||
check_struct_has_member("struct tm" tm_gmtoff time.h have_struct_tm_gmtoff)
|
||||
|
||||
@@ -290,11 +290,6 @@
|
||||
#ifndef _TANDEM_SOURCE
|
||||
#cmakedefine _TANDEM_SOURCE 1
|
||||
#endif
|
||||
/* Enable general extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
#cmakedefine __EXTENSIONS__ 1
|
||||
#endif
|
||||
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
* *
|
||||
********************************************************************/
|
||||
#include <glib.h>
|
||||
|
||||
#define __EXTENSIONS__
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <gnc-date.h>
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
********************************************************************/
|
||||
|
||||
#define __EXTENSIONS__
|
||||
#include <guid.hpp>
|
||||
#include <config.h>
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
* *
|
||||
\********************************************************************/
|
||||
|
||||
#define __EXTENSIONS__
|
||||
#include <glib.h>
|
||||
|
||||
#include <config.h>
|
||||
|
||||
Reference in New Issue
Block a user