2018-10-19 Fred Gleason <fredg@paravelsystems.com>

* Removed 'build_win32.bat'.
	* Removed all conditional compilation based on 'WIN32'.
This commit is contained in:
Fred Gleason
2018-10-19 17:03:58 -04:00
parent a127f98758
commit 75bec4d3c4
46 changed files with 49 additions and 568 deletions

View File

@@ -19,14 +19,13 @@
//
#include <stdio.h>
#ifndef WIN32
#include <syslog.h>
#endif // WIN32
#include <stdlib.h>
#include <rdcmd_switch.h>
#include <qmessagebox.h>
#include <rdcmd_switch.h>
RDCmdSwitch::RDCmdSwitch(int argc,char *argv[],const char *modname,
const char *usage)
{
@@ -34,12 +33,10 @@ RDCmdSwitch::RDCmdSwitch(int argc,char *argv[],const char *modname,
for(int i=1;i<argc;i++) {
QString value=QString::fromUtf8(argv[i]);
#ifndef WIN32
if(value=="--version") {
printf("Rivendell v%s [%s]\n",VERSION,modname);
exit(0);
}
#endif // WIN32
if(value=="--help") {
printf("\n%s %s\n",modname,usage);
exit(0);
@@ -66,14 +63,12 @@ RDCmdSwitch::RDCmdSwitch(int argc,char *argv[],const char *modname,
//
// Initialize Logging
//
#ifndef WIN32
if(debug) {
openlog(modname,LOG_PERROR,LOG_USER);
}
else {
openlog(modname,0,LOG_USER);
}
#endif // WIN32
}