[sysprof: 2/4] build: Drop redundant _GNU_SOURCE definitions



commit eae4eb4ad759d833050c3bf4050efd5901939316
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Jul 6 11:27:28 2020 +0100

    build: Drop redundant _GNU_SOURCE definitions
    
    It’s defined in `meson.build` now. See the previous commit.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 src/libsysprof-capture/sysprof-capture-writer.c       | 4 ----
 src/libsysprof-capture/sysprof-collector.c            | 4 ----
 src/libsysprof-ui/sysprof-details-page.c              | 4 ----
 src/libsysprof-ui/sysprof-profiler-assistant.c        | 4 ----
 src/libsysprof/preload/backtrace-helper.h             | 4 ----
 src/libsysprof/preload/sysprof-memory-collector.c     | 2 --
 src/libsysprof/preload/sysprof-speedtrack-collector.c | 2 --
 src/libsysprof/sysprof-kallsyms.c                     | 4 ----
 src/sysprofd/sysprof-turbostat.c                      | 2 --
 9 files changed, 30 deletions(-)
---
diff --git a/src/libsysprof-capture/sysprof-capture-writer.c b/src/libsysprof-capture/sysprof-capture-writer.c
index f890da9..14577aa 100644
--- a/src/libsysprof-capture/sysprof-capture-writer.c
+++ b/src/libsysprof-capture/sysprof-capture-writer.c
@@ -56,10 +56,6 @@
 
 #include "config.h"
 
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-
 #include <assert.h>
 #include <endian.h>
 #include <errno.h>
diff --git a/src/libsysprof-capture/sysprof-collector.c b/src/libsysprof-capture/sysprof-collector.c
index 6d9e6b1..9ffa9aa 100644
--- a/src/libsysprof-capture/sysprof-collector.c
+++ b/src/libsysprof-capture/sysprof-collector.c
@@ -54,10 +54,6 @@
  * SPDX-License-Identifier: BSD-2-Clause-Patent
  */
 
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-
 #include <assert.h>
 #include <errno.h>
 #include <poll.h>
diff --git a/src/libsysprof-ui/sysprof-details-page.c b/src/libsysprof-ui/sysprof-details-page.c
index 0c41ec4..8755f0e 100644
--- a/src/libsysprof-ui/sysprof-details-page.c
+++ b/src/libsysprof-ui/sysprof-details-page.c
@@ -18,10 +18,6 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-
 #define G_LOG_DOMAIN "sysprof-details-page"
 
 #include "config.h"
diff --git a/src/libsysprof-ui/sysprof-profiler-assistant.c b/src/libsysprof-ui/sysprof-profiler-assistant.c
index 069f3c9..89e3513 100644
--- a/src/libsysprof-ui/sysprof-profiler-assistant.c
+++ b/src/libsysprof-ui/sysprof-profiler-assistant.c
@@ -20,10 +20,6 @@
 
 #define G_LOG_DOMAIN "sysprof-profiler-assistant"
 
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-
 #include "config.h"
 
 #include <sysprof.h>
diff --git a/src/libsysprof/preload/backtrace-helper.h b/src/libsysprof/preload/backtrace-helper.h
index 1915a42..92792a5 100644
--- a/src/libsysprof/preload/backtrace-helper.h
+++ b/src/libsysprof/preload/backtrace-helper.h
@@ -20,10 +20,6 @@
 
 #pragma once
 
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-
 #ifdef HAVE_EXECINFO_H
 # include <execinfo.h>
 #endif
diff --git a/src/libsysprof/preload/sysprof-memory-collector.c 
b/src/libsysprof/preload/sysprof-memory-collector.c
index 72cf051..19cf2c6 100644
--- a/src/libsysprof/preload/sysprof-memory-collector.c
+++ b/src/libsysprof/preload/sysprof-memory-collector.c
@@ -18,8 +18,6 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <dlfcn.h>
diff --git a/src/libsysprof/preload/sysprof-speedtrack-collector.c 
b/src/libsysprof/preload/sysprof-speedtrack-collector.c
index 223dea9..62f75a6 100644
--- a/src/libsysprof/preload/sysprof-speedtrack-collector.c
+++ b/src/libsysprof/preload/sysprof-speedtrack-collector.c
@@ -18,8 +18,6 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
-#define _GNU_SOURCE
-
 #include "config.h"
 
 #include <dlfcn.h>
diff --git a/src/libsysprof/sysprof-kallsyms.c b/src/libsysprof/sysprof-kallsyms.c
index 965d1cc..4545fba 100644
--- a/src/libsysprof/sysprof-kallsyms.c
+++ b/src/libsysprof/sysprof-kallsyms.c
@@ -22,10 +22,6 @@
 
 #include "config.h"
 
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>
diff --git a/src/sysprofd/sysprof-turbostat.c b/src/sysprofd/sysprof-turbostat.c
index 5c80a53..72d6d67 100644
--- a/src/sysprofd/sysprof-turbostat.c
+++ b/src/sysprofd/sysprof-turbostat.c
@@ -18,8 +18,6 @@
  * SPDX-License-ntifier: GPL-3.0-or-later
  */
 
-#define _GNU_SOURCE
-
 #include "sysprof-turbostat.h"
 
 #include <errno.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]