summary refs log tree commit diff
path: root/math/tgmath.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/tgmath.h')
-rw-r--r--math/tgmath.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/math/tgmath.h b/math/tgmath.h
index 307a124afc..b95d55be44 100644
--- a/math/tgmath.h
+++ b/math/tgmath.h
@@ -283,7 +283,9 @@
 #define remainder(Val1, Val2) __TGMATH_BINARY_REAL_ONLY (Val1, Val2, remainder)
 
 /* Return X times (2 to the Nth power).  */
+#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
 #define scalb(Val1, Val2) __TGMATH_BINARY_REAL_ONLY (Val1, Val2, scalb)
+#endif
 
 /* Return X times (2 to the Nth power).  */
 #define scalbn(Val1, Val2) __TGMATH_BINARY_FIRST_REAL_ONLY (Val1, Val2, scalbn)