There is no need to repeat this in every file.
Change-Id: Ia788840d819b8d72122296a5e5d64aa2a7c3cb40
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
-ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
+ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1)
# Sub modules
ADD_SUBDIRECTORY(src/crash-manager)
* limitations under the License.
*/
-#define _GNU_SOURCE
-
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
* Author: Mateusz Moscicki <m.moscicki2@partner.samsung.com>
*/
-#define _GNU_SOURCE
#include <gio/gio.h>
#include <stdio.h>
#include <unistd.h>
set(CRASH_STACK_SRCS ${CRASH_STACK_SRCS} crash-stack-stub.c)
endif()
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fPIE -D_GNU_SOURCE=1")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fPIE")
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
# Binary
* Łukasz Stelmach <l.stelmach@samsung.com>
* Rafał Pietruch <r.pietruch@samsung.com>
*/
-#define _GNU_SOURCE 1
/**
* @file crash-stack.c
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#define _GNU_SOURCE
+
#include <stdlib.h>
#include <stdio.h>
#include <ucontext.h>
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#define _GNU_SOURCE
+
#include <stdlib.h>
#include <stdio.h>
#include <ucontext.h>
* limitations under the License.
*/
-#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#define _GNU_SOURCE
+
#include <stdlib.h>
#include <stdio.h>
#include <execinfo.h>
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#define _GNU_SOURCE
+
#include <stdlib.h>
#include <stdio.h>
#include <ucontext.h>