summaryrefslogtreecommitdiff
path: root/sal/Library_sal.mk
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-08-27 10:38:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-27 13:33:43 +0200
commit1d6e13e13b36163c07fc6013c9c3da6fc553e697 (patch)
tree6dac29d1c8fad518719b8e31f161854b98d74138 /sal/Library_sal.mk
parent0983231c8382234cc08124d1ce9a3e200dd0da0e (diff)
fdo#53855: Use the newly added HAVE_GCC_BUILTIN_ATOMIC for sal
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>: * nCount is needed in else branches after all * tabs -> spaces Change-Id: Iaa39ba9e1ed645819905f0e484fa4f1812271700
Diffstat (limited to 'sal/Library_sal.mk')
-rw-r--r--sal/Library_sal.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index de22417f29f9..7e77034c6a45 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -40,6 +40,9 @@ $(eval $(call gb_Library_set_include,sal,\
))
$(eval $(call gb_Library_add_defs,sal,\
+ $(if $(filter $(HAVE_GCC_BUILTIN_ATOMIC),TRUE), \
+ -DHAVE_GCC_BUILTIN_ATOMIC \
+ ) \
$(if $(VALGRIND_CFLAGS), \
$(VALGRIND_CFLAGS) \
-DHAVE_MEMCHECK_H=1 \