summaryrefslogtreecommitdiff
path: root/ldso/include/ldso.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-29 14:33:27 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-29 14:33:27 +0000
commitb6b89abbdb9c0c53d47b2edd891489a6748a729e (patch)
tree9914a8d42c0ecc4e03acd18c1188ea290c261646 /ldso/include/ldso.h
parent3b44ff3cbc0002cfde1a4699918f6c54cdbe03bf (diff)
- see if defined foo before trying to look at the value of foo (that should be 0 in this case. Avoids some warnings).
Diffstat (limited to 'ldso/include/ldso.h')
-rw-r--r--ldso/include/ldso.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h
index 47b2fb513..40ac12a57 100644
--- a/ldso/include/ldso.h
+++ b/ldso/include/ldso.h
@@ -11,7 +11,7 @@
#include <features.h>
/* Prepare for the case that `__builtin_expect' is not available. */
-#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
+#if defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ < 96
#define __builtin_expect(x, expected_value) (x)
#endif
#ifndef likely