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;
|
return;
|
||||||
|
|
||||||
strcpy(filename,dirname);
|
strcpy(filename,dirname);
|
||||||
strcat(filename,DIRSEPERATOR);
|
strcat(filename,DIRSEPARATOR);
|
||||||
if(prefix != 0)
|
if(prefix != 0)
|
||||||
strcat(filename,prefix);
|
strcat(filename,prefix);
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
@ -39,33 +39,41 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifdef MY_LOG
|
#ifdef MY_LOG
|
||||||
#define MYLOGFILE "mylog_"
|
#define MYLOGFILE "mylog_"
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#define MYLOGDIR "/tmp"
|
#define MYLOGDIR "/tmp"
|
||||||
|
#else
|
||||||
|
#define MYLOGDIR "c:"
|
||||||
|
#endif
|
||||||
|
void mylog(); /* prototype */
|
||||||
#else
|
#else
|
||||||
#define MYLOGDIR "c:"
|
#ifndef WIN32
|
||||||
#endif
|
#define mylog(args...) /* GNU convention for variable arguments */
|
||||||
void mylog(); /* prototype */
|
#else
|
||||||
#else
|
#define mylog // mylog
|
||||||
#define mylog // mylog
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef Q_LOG
|
#ifdef Q_LOG
|
||||||
#define QLOGFILE "psqlodbc_"
|
#define QLOGFILE "psqlodbc_"
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#define QLOGDIR "/tmp"
|
#define QLOGDIR "/tmp"
|
||||||
|
#else
|
||||||
|
#define QLOGDIR "c:"
|
||||||
|
#endif
|
||||||
|
void qlog(); /* prototype */
|
||||||
#else
|
#else
|
||||||
#define QLOGDIR "c:"
|
#ifndef WIN32
|
||||||
#endif
|
#define qlog(args...) /* GNU convention for variable arguments */
|
||||||
void qlog(); /* prototype */
|
#else
|
||||||
#else
|
#define qlog // qlog
|
||||||
#define qlog // qlog
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#define DIRSEPERATOR "/"
|
#define DIRSEPARATOR "/"
|
||||||
#else
|
#else
|
||||||
#define DIRSEPERATOR "\\"
|
#define DIRSEPARATOR "\\"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void remove_newlines(char *string);
|
void remove_newlines(char *string);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user