Changeset 114


Ignore:
Timestamp:
06/02/10 03:36:08 (3 years ago)
Author:
faltet
Message:

Fixes for supporting MINGW compiler.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bench/bench.c

    r113 r114  
    2525#include <sys/stat.h> 
    2626#include <fcntl.h> 
    27 #ifdef _WIN32 
     27#if defined(_WIN32) && !defined(__MINGW32__) 
    2828  #include <time.h> 
    2929#else 
     
    4343 
    4444 
    45 #ifdef _WIN32 
     45#if defined(_WIN32) && !defined(__MINGW32__) 
    4646#include <windows.h> 
    4747#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) 
  • trunk/src/blosc.c

    r109 r114  
    2020#include "shuffle.h" 
    2121 
    22 #ifdef _WIN32 
     22#if defined(_WIN32) && !defined(__MINGW32__) 
    2323  #include <windows.h> 
    2424  #include "stdint-windows.h" 
     
    379379  /* Create temporary area for each thread */ 
    380380  for (tid = 0; tid < nthreads; tid++) { 
    381 #ifdef _WIN32 
     381#if defined(_WIN32) 
    382382    tmp = (uint8_t *)_aligned_malloc(blocksize, 16); 
    383383    tmp2 = (uint8_t *)_aligned_malloc(ebsize, 16); 
     
    412412    tmp = params.tmp[tid]; 
    413413    tmp2 = params.tmp2[tid]; 
    414 #ifdef _WIN32 
     414#if defined(_WIN32) 
    415415    _aligned_free(tmp); 
    416416    _aligned_free(tmp2); 
  • trunk/src/blosclz.c

    r86 r114  
    1919#include "blosclz.h" 
    2020 
    21 #ifdef _WIN32 
     21#if defined(_WIN32) && !defined(__MINGW32__) 
    2222  #include <windows.h> 
    2323  #include "stdint-windows.h" 
  • trunk/src/shuffle.c

    r82 r114  
    1212#include "shuffle.h" 
    1313 
    14 #ifdef _WIN32 
     14#if defined(_WIN32) && !defined(__MINGW32__) 
    1515  #include <windows.h> 
    1616  #include "stdint-windows.h" 
Note: See TracChangeset for help on using the changeset viewer.