]> andersk Git - openssh.git/commitdiff
- Added better test for inline functions compiler support from
authordamien <damien>
Tue, 14 Dec 1999 22:34:31 +0000 (22:34 +0000)
committerdamien <damien>
Tue, 14 Dec 1999 22:34:31 +0000 (22:34 +0000)
   Darren_Hall@progressive.com

ChangeLog
acconfig.h
cipher.c
configure.in

index f96ddd45460a596be44ca328676d2a999cb64576..6346a3202c5e3a53f487531ed625b42148f7502c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
  - Integrated patchs from Juergen Keil <jk@tools.de>
    - Avoid void* pointer arithmatic
    - Use LDFLAGS correctly
+ - Added better test for inline functions compiler support from  
+   Darren_Hall@progressive.com
 
 19991214
  - OpenBSD CVS Changes
index 324f45dbe45002069fe849b63e54c961e0923fa5..6be7bddb2e899fd01fcdb2ff5a04fa2a977a7a10 100644 (file)
@@ -261,14 +261,8 @@ enum
 # define __P(x) x
 #endif
 
-#ifdef __GNUC__
-#  if __GNUC__ < 2
-#    define INLINE inline
-#    define __attribute__(x)
-#  else
-#    define INLINE __inline__
-#  endif /* __GNUC__ < 2 */
+#if defined(__GNUC__) && (__GNUC__ < 2)
+#  define __attribute__(x)
 #else
 #  define __attribute__(x)
-#  define INLINE
-#endif /* __GNUC__ */
+#endif /* defined(__GNUC__) && (__GNUC__ < 2) */
index 6d2115230ee306bbc433ff10e9df8fd3c00f9b72..533211f4de7747a8bdbad4de49906117face1b6f 100644 (file)
--- a/cipher.c
+++ b/cipher.c
@@ -111,7 +111,7 @@ swap_bytes(const unsigned char *src, unsigned char *dst_, int n)
 
 void (*cipher_attack_detected) (const char *fmt,...) = fatal;
 
-static INLINE void
+static inline void
 detect_cbc_attack(const unsigned char *src,
                  unsigned int len)
 {
index f77e46a09b2514605a14ad2b516b37291fc3a765..19372e2d5f8c2aeae422dbc867724870cdda0565 100644 (file)
@@ -8,7 +8,10 @@ AC_PROG_CPP
 AC_PROG_RANLIB
 AC_PROG_INSTALL
 AC_CHECK_PROG(AR, ar, ar)
+
+dnl Checks for compiler characteristics
 if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
+AC_C_INLINE
 
 dnl Check for OpenSSL/SSLeay directories.
 AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
This page took 0.047087 seconds and 5 git commands to generate.