Changeset 3358 in CLRX


Ignore:
Timestamp:
Sep 12, 2017, 7:28:52 PM (13 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Fixes for MinGW.

Location:
CLRadeonExtender/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/Config.h.in

    r3356 r3358  
    135135#endif
    136136
     137#ifdef defined(__MINGW32__) || defined(__MINGW64__)
     138#  define HAVE_MINGW 1
     139#endif
     140
    137141/* config setup */
    138142
     
    183187#  define strcasecmp(A,B) _stricmp(A,B)
    184188#  define strncasecmp(A,B,N) _strnicmp(A,B,N)
    185 #  if _MSC_VER<1900
     189#  if defined(_MSC_VER) && _MSC_VER<1900
    186190#    define snprintf(B,N,F,...) _snprintf(B,N,F,__VA_ARGS__)
    187191#  endif
  • CLRadeonExtender/trunk/CLRX/amdbin/AmdBinaries.h

    r2706 r3358  
    3636#include <CLRX/utils/Utilities.h>
    3737#include <CLRX/utils/GPUId.h>
     38
     39#ifdef HAVE_MINGW
     40#undef VOID
     41#endif
    3842
    3943/// main namespace
  • CLRadeonExtender/trunk/utils/NumStringConv.cpp

    r2682 r3358  
    3131#ifdef HAVE_LINUX
    3232#include <alloca.h>
     33#elif defined(HAVE_MINGW)
     34#include <malloc.h>
    3335#else
    3436#include <cstdlib>
  • CLRadeonExtender/trunk/utils/Utilities.cpp

    r3221 r3358  
    495495            throw Exception("Can't determine whether path refers to directory");
    496496    }
    497 #if _POSIX_C_SOURCE>=200800L
     497#if _POSIX_C_SOURCE>=200800L && !defined(HAVE_MINGW)
    498498    return stBuf.st_mtim.tv_sec*1000000000ULL + stBuf.st_mtim.tv_nsec;
    499499#else
Note: See TracChangeset for help on using the changeset viewer.