Commit c458aa7f authored by Jason Harris's avatar Jason Harris
Browse files

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@kde.org
CCMAIL: l.savernik@aon.at

svn path=/trunk/kdeedu/kstars/; revision=285168
parent 514a29e2
......@@ -8,6 +8,8 @@ SUBDIRS = data indi icons
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
......
......@@ -15,9 +15,6 @@
* *
***************************************************************************/
// needed for sincos() in math.h
#define _GNU_SOURCE
#include <stdlib.h>
#include "skypoint.h"
......
......@@ -15,10 +15,6 @@
* *
***************************************************************************/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <kconfig.h>
#include <kiconloader.h>
#include <kstatusbar.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment