Browse Source

add HAS_TCLWIN

pre-master-46
h_vogt 17 years ago
parent
commit
488771485e
  1. 2
      ChangeLog
  2. 6
      src/frontend/outitf.c
  3. 2
      src/misc/alloc.c

2
ChangeLog

@ -1,5 +1,7 @@
2009-01-18 Holger Vogt
* src/frontend/mw_coms.c: variable declarations to top of function
* outif.c, alloc.c: add HAS_TCLWIN flag to allow coimpilation of
tclspice under MS VC++
2009-01-16 Paolo Nenzi
* src/frontend/mw_coms.c, src/frontend/commands.c,

6
src/frontend/outitf.c

@ -65,8 +65,10 @@ static void freeRun(runDesc *run);
/*saj*/
/* plot output data shall go into extra heap
to prevent massive memory fragmentation of standard process heap */
#if defined HAS_WINDOWS && (defined(_MSC_VER) || defined(__MINGW32__))
to prevent massive memory fragmentation of standard process heap.
This is especially required by TCL for Windows, but may help
also under standard Windows GUI. */
#if (defined(HAS_WINDOWS) || defined(HAS_TCLWIN)) && (defined(_MSC_VER) || defined(__MINGW32__))
#define newrealloc hrealloc
#else
#define newrealloc trealloc

2
src/misc/alloc.c

@ -15,7 +15,7 @@ $Id$
#include <tcl.h>
#endif
#ifdef HAS_WINDOWS
#if defined(HAS_WINDOWS) || defined(HAS_TCLWIN)
#if defined(_MSC_VER) || defined(__MINGW32__)
#undef BOOLEAN
#include <windows.h>

Loading…
Cancel
Save