From d1e7d49d2cde9b9d80cfe52aea7ccb63a4f45391 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 19 Mar 2021 03:47:23 +0100 Subject: [PATCH] simple-atomic tests: Fix compilation error on Solaris 10. Reported by Tom G. Christensen in . * tests/test-simple-atomic.c (yield): Define only after all #includes. --- ChangeLog | 7 +++++++ tests/test-simple-atomic.c | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1003958f60..00b35b205d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-03-18 Bruno Haible + + simple-atomic tests: Fix compilation error on Solaris 10. + Reported by Tom G. Christensen in + . + * tests/test-simple-atomic.c (yield): Define only after all #includes. + 2021-03-18 Bruno Haible simple-atomic: Fix compilation error on Solaris 10/x86_64 with cc. diff --git a/tests/test-simple-atomic.c b/tests/test-simple-atomic.c index 04baf054b1..e30506a141 100644 --- a/tests/test-simple-atomic.c +++ b/tests/test-simple-atomic.c @@ -34,17 +34,17 @@ implementation. */ #define REPEAT_COUNT 1000 +#include "glthread/thread.h" +#include "glthread/yield.h" + +#include "macros.h" + #if EXPLICIT_YIELD # define yield() gl_thread_yield () #else # define yield() #endif -#include "glthread/thread.h" -#include "glthread/yield.h" - -#include "macros.h" - /* Counters for each thread. */ static unsigned int counter[THREAD_COUNT][5]; -- 2.39.5