]> granicus.if.org Git - transmission/commitdiff
trivial cleanup
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 7 Feb 2009 14:46:43 +0000 (14:46 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 7 Feb 2009 14:46:43 +0000 (14:46 +0000)
libtransmission/utils.h

index 5bc555ab661a6c0d2bc3f0c16ac331f19006d93e..7e462596379c97e979db3fb677cfb4d8f77f0a83 100644 (file)
@@ -79,9 +79,7 @@ extern "C" {
 ***/
 
 #if !defined( _ )
- #if defined( SYS_DARWIN )
-  #define _( a ) ( a )
- #elif defined( HAVE_LIBINTL_H )
+ #if defined( HAVE_LIBINTL_H ) && !defined( SYS_DARWIN )
   #include <libintl.h>
   #define _( a ) gettext ( a )
  #else
@@ -109,7 +107,7 @@ void tr_assertImpl( const char * file, int line, const char * test, const char *
  #define tr_assert( test, fmt, ... )
 #else
  #define tr_assert( test, fmt, ... ) \
-    do { if( ! ( test ) ) tr_assertImpl( __FILE__, __LINE__, #test, fmt, __VA_ARGS__ ); } while( 0 )
+    if( ! ( test ) ) tr_assertImpl( __FILE__, __LINE__, #test, fmt, __VA_ARGS__ );
 #endif
         
 int            tr_msgLoggingIsActive( int level );