From 8d166ebcc9ec1f4a5be68d575c7a0375317c595a Mon Sep 17 00:00:00 2001 From: h_vogt Date: Tue, 4 Jun 2013 22:59:08 +0200 Subject: [PATCH] enable compilation with MS Visual Studio 2008 --- src/maths/ni/niconv.c | 3 +- visualc/vngspice.vcproj | 140 ++++++++++++++++++++++++++++++++++++++-- 2 files changed, 136 insertions(+), 7 deletions(-) diff --git a/src/maths/ni/niconv.c b/src/maths/ni/niconv.c index 48ed9a577..53e1b5e08 100644 --- a/src/maths/ni/niconv.c +++ b/src/maths/ni/niconv.c @@ -26,6 +26,8 @@ NIconvTest(CKTcircuit *ckt) double old; double new; double tol; +#else + double maximum = 0 ; #endif size = SMPmatSize(ckt->CKTmatrix); @@ -73,7 +75,6 @@ NIconvTest(CKTcircuit *ckt) #else /* KCL Verification */ - double maximum = 0 ; node = ckt->CKTnodes ; for (i = 1 ; i <= size ; i++) diff --git a/visualc/vngspice.vcproj b/visualc/vngspice.vcproj index 92e1638e6..9fa1d5d5d 100644 --- a/visualc/vngspice.vcproj +++ b/visualc/vngspice.vcproj @@ -49,7 +49,7 @@ Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories=""$(ProjectDir)..\src\maths\poly";"$(ProjectDir)..\src\frontend";"$(ProjectDir)..\src\spicelib\devices";"$(ProjectDir)include";"$(ProjectDir)..\src\include";"C:\Program Files (x86)\Visual Leak Detector\include"" - PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;SIMULATOR;NGDEBUG;XSPICE" + PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;SIMULATOR;NGDEBUG;XSPICE;KIRCHHOFF" MinimalRebuild="true" ExceptionHandling="0" BasicRuntimeChecks="0" @@ -790,7 +790,7 @@ FavorSizeOrSpeed="1" WholeProgramOptimization="true" AdditionalIncludeDirectories=""$(ProjectDir)..\src\maths\poly";"$(ProjectDir)..\src\frontend";"$(ProjectDir)..\src\spicelib\devices";"$(ProjectDir)..\src\include";"$(ProjectDir)include"" - PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;SIMULATOR;USE_OMP" + PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;SIMULATOR;USE_OMP;KIRCHHOFF" MinimalRebuild="false" ExceptionHandling="1" BasicRuntimeChecks="0" @@ -2144,10 +2144,6 @@ RelativePath="..\src\frontend\init.h" > - - @@ -2188,6 +2184,10 @@ RelativePath="..\src\frontend\parser\input.h" > + + @@ -3216,6 +3216,10 @@ RelativePath="..\src\spicelib\devices\asrc\asrcmdel.c" > + + @@ -3296,6 +3300,10 @@ RelativePath="..\src\spicelib\devices\bsim1\b1mpar.c" > + + @@ -3372,6 +3380,10 @@ RelativePath="..\src\spicelib\devices\bsim2\b2mpar.c" > + + @@ -3444,6 +3456,10 @@ RelativePath="..\src\spicelib\devices\bsim3\b3mpar.c" > + + @@ -3512,6 +3528,10 @@ RelativePath="..\src\spicelib\devices\bsim3soi_dd\b3soiddmpar.c" > + + @@ -3588,6 +3608,10 @@ RelativePath="..\src\spicelib\devices\bsim3soi_fd\b3soifdmpar.c" > + + @@ -3664,6 +3688,10 @@ RelativePath="..\src\spicelib\devices\bsim3soi_pd\b3soipdmpar.c" > + + @@ -3740,6 +3768,10 @@ RelativePath="..\src\spicelib\devices\bsim3v0\b3v0mpar.c" > + + @@ -3812,6 +3844,10 @@ RelativePath="..\src\spicelib\devices\bsim3v1\b3v1mpar.c" > + + @@ -3884,6 +3920,10 @@ RelativePath="..\src\spicelib\devices\bsim3v32\b3v32mpar.c" > + + @@ -3960,6 +4000,10 @@ RelativePath="..\src\spicelib\devices\bsim4\b4mpar.c" > + + @@ -4028,6 +4072,10 @@ RelativePath="..\src\spicelib\devices\bsimsoi\b4soimpar.c" > + + @@ -4112,6 +4160,10 @@ RelativePath="..\src\spicelib\devices\bsim4v4\b4v4mpar.c" > + + @@ -4188,6 +4240,10 @@ RelativePath="..\src\spicelib\devices\bsim4v5\b4v5mpar.c" > + + @@ -4264,6 +4320,10 @@ RelativePath="..\src\spicelib\devices\bsim4v6\b4v6mpar.c" > + + @@ -4356,6 +4416,10 @@ RelativePath="..\src\spicelib\devices\bjt\bjtmpar.c" > + + @@ -5352,6 +5416,10 @@ RelativePath="..\src\spicelib\devices\dio\diompar.c" > + + @@ -5668,6 +5736,10 @@ RelativePath="..\src\spicelib\devices\hfet2\hfet2mpar.c" > + + @@ -5728,6 +5800,10 @@ RelativePath="..\src\spicelib\devices\hfet1\hfetmpar.c" > + + @@ -5804,6 +5880,10 @@ RelativePath="..\src\spicelib\devices\hisim2\hsm2mpar.c" > + + @@ -5880,6 +5960,10 @@ RelativePath="..\src\spicelib\devices\hisimhv1\hsmhvmpar.c" > + + @@ -6364,6 +6448,10 @@ RelativePath="..\src\spicelib\devices\jfet2\jfet2mpar.c" > + + @@ -6432,6 +6520,10 @@ RelativePath="..\src\spicelib\devices\jfet\jfetmpar.c" > + + @@ -6616,6 +6708,10 @@ RelativePath="..\src\spicelib\devices\mesa\mesamparam.c" > + + @@ -6688,6 +6784,10 @@ RelativePath="..\src\spicelib\devices\mes\mesmpar.c" > + + @@ -6872,6 +6972,10 @@ RelativePath="..\src\spicelib\devices\mos1\mos1mpar.c" > + + @@ -6972,6 +7076,10 @@ RelativePath="..\src\spicelib\devices\mos2\mos2mpar.c" > + + @@ -7072,6 +7180,10 @@ RelativePath="..\src\spicelib\devices\mos3\mos3mpar.c" > + + @@ -7152,6 +7264,10 @@ RelativePath="..\src\spicelib\devices\mos6\mos6mpar.c" > + + @@ -7224,6 +7340,10 @@ RelativePath="..\src\spicelib\devices\mos9\mos9mpar.c" > + + @@ -8068,6 +8188,10 @@ RelativePath="..\src\spicelib\devices\soi3\soi3mpar.c" > + + @@ -8564,6 +8688,10 @@ RelativePath="..\src\spicelib\devices\vbic\vbicmpar.c" > + +