[Piglit] [PATCH 1/9] Drop defines of _GNU_SOURCE in tests.

Eric Anholt eric at anholt.net
Tue Jan 28 18:52:53 PST 2014


The build system defines it globally.
---
 tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c | 4 +---
 tests/spec/ext_transform_feedback/api-errors.c                   | 3 ---
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c b/tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c
index 3354e29..2f698f3 100644
--- a/tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c
+++ b/tests/spec/arb_separate_shader_objects/ValidateProgramPipeline.c
@@ -20,9 +20,7 @@
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  * IN THE SOFTWARE.
  */
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
+
 #include "piglit-util-gl-common.h"
 
 PIGLIT_GL_TEST_CONFIG_BEGIN
diff --git a/tests/spec/ext_transform_feedback/api-errors.c b/tests/spec/ext_transform_feedback/api-errors.c
index c8d65c4..737dc20 100644
--- a/tests/spec/ext_transform_feedback/api-errors.c
+++ b/tests/spec/ext_transform_feedback/api-errors.c
@@ -48,9 +48,6 @@
  * implementation is not overly aggressive in flagging errors.
  */
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
 #include "piglit-util-gl-common.h"
 
 PIGLIT_GL_TEST_CONFIG_BEGIN
-- 
1.8.5.3



More information about the Piglit mailing list