diff options
Diffstat (limited to 'demos')
-rw-r--r-- | demos/c/Makefile | 4 | ||||
-rw-r--r-- | demos/c/api_test.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/demos/c/Makefile b/demos/c/Makefile index 5f053410d..8848fc52e 100644 --- a/demos/c/Makefile +++ b/demos/c/Makefile @@ -2,7 +2,7 @@ api_test: api_test.c (cd ../.. && ./autogen.sh) (cd ../.. && make so XCFLAGS="-DCLUSTER") pwd - gcc -fPIC -I../.. api_test.c -DGHOSTPDL=1 -lgpdl -L../../sobin -o api_test + gcc -fPIC -I../.. api_test.c -DCLUSTER=1 -DGHOSTPDL=1 -lgpdl -L../../sobin -o api_test run_api_test: api_test LD_LIBRARY_PATH=../../sobin ./api_test @@ -15,7 +15,7 @@ multi_test: multi_test.c (cd ../.. && ./autogen.sh) (cd ../.. && make so XCFLAGS="-DCLUSTER") pwd - gcc -fPIC -I../.. multi_test.c -DGHOSTPDL=1 -lgpdl -lpthread -L../../sobin -o multi_test + gcc -fPIC -I../.. multi_test.c -DCLUSTER=1 -DGHOSTPDL=1 -lgpdl -lpthread -L../../sobin -o multi_test run_multi_test: multi_test LD_LIBRARY_PATH=../../sobin ./multi_test diff --git a/demos/c/api_test.c b/demos/c/api_test.c index 6560cb79c..6a759c9ed 100644 --- a/demos/c/api_test.c +++ b/demos/c/api_test.c @@ -23,7 +23,9 @@ /* We can't have pointers displayed in the test output, as that will * change the output between runs. The following definition hides * them. */ +#ifdef CLUSTER #define HIDE_POINTERS +#endif #include <stdio.h> #include <stdlib.h> |