[Mesa-dev] [PATCH 3/3] anv: remove define _DEFAULT_SOURCE

Emil Velikov emil.l.velikov at gmail.com
Sun May 1 12:48:12 UTC 2016


The build systems already add this as applicable. There's no need to
have this in the source file.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/intel/vulkan/anv_allocator.c | 2 --
 src/intel/vulkan/anv_gem.c       | 2 --
 src/intel/vulkan/anv_gem_stubs.c | 2 --
 3 files changed, 6 deletions(-)

diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c
index e3b07ff..088b461 100644
--- a/src/intel/vulkan/anv_allocator.c
+++ b/src/intel/vulkan/anv_allocator.c
@@ -21,8 +21,6 @@
  * IN THE SOFTWARE.
  */
 
-#define _DEFAULT_SOURCE
-
 #include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/src/intel/vulkan/anv_gem.c b/src/intel/vulkan/anv_gem.c
index a886f7c..e654689 100644
--- a/src/intel/vulkan/anv_gem.c
+++ b/src/intel/vulkan/anv_gem.c
@@ -21,8 +21,6 @@
  * IN THE SOFTWARE.
  */
 
-#define _DEFAULT_SOURCE
-
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <string.h>
diff --git a/src/intel/vulkan/anv_gem_stubs.c b/src/intel/vulkan/anv_gem_stubs.c
index 3204fef..30b40ce 100644
--- a/src/intel/vulkan/anv_gem_stubs.c
+++ b/src/intel/vulkan/anv_gem_stubs.c
@@ -21,8 +21,6 @@
  * IN THE SOFTWARE.
  */
 
-#define _DEFAULT_SOURCE
-
 #include <linux/memfd.h>
 #include <sys/mman.h>
 #include <sys/syscall.h>
-- 
2.8.0



More information about the mesa-dev mailing list