#1 Patch for compiling on Windows

closed-accepted
nobody
5
2002-01-10
2002-01-04
No

Compiling on Windows 2000 with MSVC++ fails for a
couple of reasons. With some help from Michael Hudson
I managed to get these straightened out, so I figured
I'd submit the necessary changes here.

The first two changes are psyco.h: one disable
HEAVY_MEM_CHECK on win32 since mman.h is not available
while the second substitutes __inline__ for GCCs
__inline on win32.

The last change involves replacing the use of the GC
macros in psyco.c with their equivalent functions. The
use of macros results in unresolved external reference
on Windows. If you feel that the macros are needed for
speed on non win32 platforms, I suppose that #ifdefs
could be used here, but I suspect that the leading
underscore on the macros indicates that they aren't
really supposed to be used directly.

Patch is attached.

-tim

Discussion

  • Tim Hochberg

    Tim Hochberg - 2002-01-04

    Patch against current CVS

     
    Attachments
  • Petru Paler

    Petru Paler - 2002-01-04

    Logged In: YES
    user_id=633

    Applied.

     
  • Armin Rigo

    Armin Rigo - 2002-01-10
    • status: open --> closed-accepted
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks