Don't optimize toupper/tolower for C++.
authordrepper <drepper>
Mon, 24 May 1999 16:20:49 +0000 (16:20 +0000)
committerdrepper <drepper>
Mon, 24 May 1999 16:20:49 +0000 (16:20 +0000)
ctype/ctype.h

index fd4f9e8..11f9206 100644 (file)
@@ -163,7 +163,7 @@ toupper (int __c) __THROW
 }
 #endif
 
-#if __GNUC__ >= 2 && defined __OPTIMIZE__
+#if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus
 # define __tobody(c, f, a) \
   ({ int __res;                                                                      \
      if (sizeof (c) > 1)                                                     \