Ticket #1846: begin.patch

File begin.patch, 486 bytes (added by ronaldws, 4 years ago)

Detect Mingw gcc set to too old version of Windows

  • config/gen/platform/win32/begin.c

    diff --git a/config/gen/platform/win32/begin.c b/config/gen/platform/win32/begin.c
    index 0b0948c..874744a 100644
    a b  
    44 
    55#include <windows.h> 
    66 
     7#if defined __MINGW32__ 
     8 
     9#include <w32api.h> 
     10#if WINVER < Windows2000 
     11    #error  Minimum requirement for Parrot on Windows is Windows 2000 - might want to check windef.h 
     12#endif 
     13 
     14#endif 
     15 
    716/* 
    817 * Local variables: 
    918 *   c-file-style: "parrot"