From 1b16aa3f50af7b0c9749c077d9785d7d71928183 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Sat, 16 Dec 2000 03:39:06 +0000 Subject: [PATCH] r260: MSVC changes --- getopt/getopt.h | 2 +- src/ctsim.cpp | 10 +++++++--- src/dlgreconstruct.cpp | 4 +--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/getopt/getopt.h b/getopt/getopt.h index 95ba4e1..6d73e9f 100644 --- a/getopt/getopt.h +++ b/getopt/getopt.h @@ -82,7 +82,7 @@ extern int optopt; struct option { -# if defined __STDC__ && __STDC__ +# if defined __STDC__ const char *name; # else char *name; diff --git a/src/ctsim.cpp b/src/ctsim.cpp index 93a0a71..d07eb2b 100644 --- a/src/ctsim.cpp +++ b/src/ctsim.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ctsim.cpp,v 1.14 2000/12/16 03:29:02 kevin Exp $ +** $Id: ctsim.cpp,v 1.15 2000/12/16 03:39:06 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -50,10 +50,14 @@ #include "config.h" #endif #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG) -#include "getopt.h" +#ifdef MSVC +#define __STDC__ 1 +#include "getopt.h" +#undef __STDC__ +#endif #endif -static const char* rcsindent = "$Id: ctsim.cpp,v 1.14 2000/12/16 03:29:02 kevin Exp $"; +static const char* rcsindent = "$Id: ctsim.cpp,v 1.15 2000/12/16 03:39:06 kevin Exp $"; class CTSimApp* theApp = NULL; diff --git a/src/dlgreconstruct.cpp b/src/dlgreconstruct.cpp index f6e2182..4729ee9 100644 --- a/src/dlgreconstruct.cpp +++ b/src/dlgreconstruct.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: dlgreconstruct.cpp,v 1.6 2000/12/16 03:29:02 kevin Exp $ +** $Id: dlgreconstruct.cpp,v 1.7 2000/12/16 03:39:06 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -36,7 +36,6 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP #include "wx/utils.h" #include "wx/frame.h" #include "wx/button.h" @@ -48,7 +47,6 @@ #include "wx/dcclient.h" #include "wx/timer.h" #include "wx/image.h" -#endif #include "dlgreconstruct.h" #include -- 2.34.1