Changeset 331

Show
Ignore:
Timestamp:
11/28/99 20:39:52 (15 years ago)
Author:
ucacoxh
Message:

- Win32 compilation fix and non-debug macro tweak.

Location:
common/trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/src/debug.c

    r330 r331  
    138138} 
    139139 
    140 void debug_set_core_dir(const char *argv0) 
     140void _debug_set_core_dir(const char *argv0) 
    141141{ 
    142142#if defined(DEBUG) && !defined(WIN32) 
     
    152152        } 
    153153 
    154         /* Should check length of appname, but this is debug code...*/ 
     154        /* Should check length of appname, but this is debug code   */ 
    155155        /* and developers should know better than to have 64 char   */ 
    156156        /* app name.                                                */ 
     
    172172        chdir(coredir); 
    173173#endif /* DEBUG */ 
     174        UNUSED(argv0); 
    174175} 
  • common/trunk/src/debug.h

    r330 r331  
    5050void _dprintf(const char *format, ...); 
    5151void debug_dump(void*lp, long len); 
    52 void debug_set_core_dir(const char *argv0); 
     52 
     53#ifdef DEBUG 
     54void _debug_set_core_dir(const char *argv0); 
     55#define debug_set_core_dir(x) _debug_set_core_dir(x) 
     56#else  
     57#define debug_set_core_dir(x) 
     58#endif 
    5359 
    5460#if defined(__cplusplus)