Fix macro declarations to allow disabling mylog() and qlog() on Unix boxes.
Fix spelling of "DIRSEPARATOR".
This commit is contained in:
parent
f4ccb5e170
commit
571d121664
@ -44,7 +44,7 @@ generate_filename(char* dirname,char* prefix,char* filename)
|
||||
return;
|
||||
|
||||
strcpy(filename,dirname);
|
||||
strcat(filename,DIRSEPERATOR);
|
||||
strcat(filename,DIRSEPARATOR);
|
||||
if(prefix != 0)
|
||||
strcat(filename,prefix);
|
||||
#ifndef WIN32
|
||||
|
@ -46,9 +46,13 @@
|
||||
#define MYLOGDIR "c:"
|
||||
#endif
|
||||
void mylog(); /* prototype */
|
||||
#else
|
||||
#ifndef WIN32
|
||||
#define mylog(args...) /* GNU convention for variable arguments */
|
||||
#else
|
||||
#define mylog // mylog
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef Q_LOG
|
||||
#define QLOGFILE "psqlodbc_"
|
||||
@ -58,14 +62,18 @@ void mylog(); /* prototype */
|
||||
#define QLOGDIR "c:"
|
||||
#endif
|
||||
void qlog(); /* prototype */
|
||||
#else
|
||||
#ifndef WIN32
|
||||
#define qlog(args...) /* GNU convention for variable arguments */
|
||||
#else
|
||||
#define qlog // qlog
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
#define DIRSEPERATOR "/"
|
||||
#define DIRSEPARATOR "/"
|
||||
#else
|
||||
#define DIRSEPERATOR "\\"
|
||||
#define DIRSEPARATOR "\\"
|
||||
#endif
|
||||
|
||||
void remove_newlines(char *string);
|
||||
|
Loading…
x
Reference in New Issue
Block a user