summaryrefslogtreecommitdiff
path: root/lib/cdefs.h
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2018-01-03 11:50:07 +0100
committerBruno Haible <bruno@clisp.org>2018-01-04 10:59:48 +0100
commit29c98faf72b235e8add44509eeabd9ccf9f49043 (patch)
treec3d365e522dd14b81511ac82b195f3bc947dd529 /lib/cdefs.h
parentb8ecba3a2559f01539ed76817bc2a0cf4977ea46 (diff)
downloadgnulib-29c98faf72b235e8add44509eeabd9ccf9f49043.tar.gz
Fix -Wundef warning in user-included header lib/cdefs.h.
* lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
Diffstat (limited to 'lib/cdefs.h')
-rw-r--r--lib/cdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cdefs.h b/lib/cdefs.h
index 9ed0259dce..f6c20fe2ed 100644
--- a/lib/cdefs.h
+++ b/lib/cdefs.h
@@ -295,7 +295,7 @@
#if __GNUC_PREREQ (3,4)
# define __attribute_warn_unused_result__ \
__attribute__ ((__warn_unused_result__))
-# if __USE_FORTIFY_LEVEL > 0
+# if defined __USE_FORTIFY_LEVEL && __USE_FORTIFY_LEVEL > 0
# define __wur __attribute_warn_unused_result__
# endif
#else