Changeset 5520


Ignore:
Timestamp:
Apr 5, 2008, 8:49:51 PM (14 years ago)
Author:
charles
Message:

#840: bencode.c (and others) does not compile without libintl.h

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r5509 r5520  
    117117fi
    118118
     119AC_CHECK_HEADERS([libintl.h])
    119120IT_PROG_INTLTOOL([0.23],[no-xml])
    120121GETTEXT_PACKAGE=transmission
  • trunk/libtransmission/utils.h

    r5366 r5520  
    3636#if defined(SYS_DARWIN)
    3737  /*#include <CoreFoundation/CFBundle.h>
    38  
    3938  const char * tr_getMacLocalizedCString(CFStringRef string);
    40  
    4139  #define _(a) tr_getMacLocalizedCString(CFSTR(a))*/
    4240  #define _(a) (a)
    43 #else
     41#elif HAVE_LIBINTL
    4442  #include <libintl.h>
    4543  #define _(a) gettext (a)
     44#else
     45  #define _(a) (a)
    4646#endif
    4747#endif
Note: See TracChangeset for help on using the changeset viewer.