Changeset 2562


Ignore:
Timestamp:
Jul 18, 2008, 11:28:02 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Better check for the func keyword that does not rely on assumptions about the compiler version.
Location:
zzuf/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/Makefile.am

    r2527 r2562  
    44DIST_SUBDIRS = $(SUBDIRS)
    55
    6 EXTRA_DIST = bootstrap AUTHORS m4/cflags.m4
     6EXTRA_DIST = bootstrap AUTHORS m4/cflags.m4 m4/func.m4
    77ACLOCAL_AMFLAGS = -I m4
    88AUTOMAKE_OPTIONS = foreign dist-bzip2
  • zzuf/trunk/configure.ac

    r2559 r2562  
    1313
    1414AC_C_INLINE
     15AC_C_FUNC
    1516
    1617# Optimizations
  • zzuf/trunk/msvc/config.h

    r2534 r2562  
    4242#define inline /* undefined */
    4343#define __attribute__(x) /* undefined */
     44#define __func__ __FUNCTION__
    4445
    4546#define STDOUT_FILENO 1
  • zzuf/trunk/src/lib-load.h

    r1701 r2562  
    1616 *  lib-load.h: preload library functions
    1717 */
    18 
    19 /* The __func__ macro to get the current function name */
    20 #if __STDC_VERSION__ < 199901L
    21 #   if __GNUC__ >= 2
    22 #       define __func__ __FUNCTION__
    23 #   else
    24 #       define __func__ "<?>"
    25 #   endif
    26 #endif
    2718
    2819/* Symbol loading stuff */
Note: See TracChangeset for help on using the changeset viewer.