[Kstars-devel] kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Thu Feb 5 01:06:12 CET 2004
CVS commit by harris:
Patch from Leo Savernik to apply the preprocessor define of "_GNU_SOURCE"
globally. Instead of using "#define _GNU_SOURCE" in the source code
files, we use "KDE_CXXFLAGS = -D_GNU_SOURCE" in kstars/kstars/Makefile.am.
(_GNU_SOURCE is needed when including math.h so we get the GNU function
"sincos()", if it is available).
This allows the non-INDI code to compile cleanly with "enable-final"
active (recall that we have disabled enable-final in the INDI directory).
Will backport to KDE_3_2_BRANCH as well.
CCMAIL: kstars-devel at kde.org
CCMAIL: l.savernik at aon.at
M +2 -0 Makefile.am 1.102
M +0 -3 dms.cpp 1.26
M +0 -4 skymap.cpp 1.117
--- kdeedu/kstars/kstars/Makefile.am #1.101:1.102
@@ -9,4 +9,6 @@
EXTRA_DIST = kstars.desktop kstarsui.rc fitsviewer.rc
+# needed for sincos() GNU extension to math.h
+KDE_CXXFLAGS = -D_GNU_SOURCE
xdg_apps_DATA = kstars.desktop
--- kdeedu/kstars/kstars/dms.cpp #1.25:1.26
@@ -16,7 +16,4 @@
***************************************************************************/
-// needed for sincos() in math.h
-#define _GNU_SOURCE
-
#include <stdlib.h>
--- kdeedu/kstars/kstars/skymap.cpp #1.116:1.117
@@ -16,8 +16,4 @@
***************************************************************************/
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-
#include <kconfig.h>
#include <kiconloader.h>
More information about the Kstars-devel
mailing list