From 3942bc2ade15b09cfbea94ce4b6f17c0b14bfc48 Mon Sep 17 00:00:00 2001 From: rlar Date: Tue, 20 Jul 2010 19:10:51 +0000 Subject: [PATCH] drop #include , (even for non MSC_VER) --- ChangeLog | 6 +++++- src/tclspice.c | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a55d83833..3a500e100 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-07-20 Robert Larice + * src/tclspice.c : + drop #include , (even for non MSC_VER) + 2010-07-20 Robert Larice * src/main.c : fix an incorrect type, (&char versus &bool) @@ -27,7 +31,7 @@ allow cp_getvar(,CP_BOOL,NULL) to avoid insane usage The third parameter is a pointer to the result value. Frequently only the function return value is used, - (presence of nonpresence of the variable) + (presence or nonpresence of the variable) and the third parameter points to an unused variable. Even worse, in several cases a dummy variable of incorrect type is used for that purpose. diff --git a/src/tclspice.c b/src/tclspice.c index 50abd956d..229fd75e1 100755 --- a/src/tclspice.c +++ b/src/tclspice.c @@ -94,9 +94,7 @@ typedef pthread_t threadId_t; #include #include #include -#ifndef _MSC_VER /* avoid second definition of CP_BOOL */ -#include -#else +#ifdef _MSC_VER #include #define snprintf _snprintf #endif