Changeset 3011 for box/trunk/lib


Ignore:
Timestamp:
08/10/2011 13:41:28 (8 months ago)
Author:
chris
Message:

Recent Cygwin versions of MinGW now define O_BINARY as well, also in
fcntl.h, so include it if we can find it, and only define O_BINARY if
it turns out to be missing.

Location:
box/trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/BoxConfig-MSVC.h

    r2067 r3011  
    7676/* Define to 1 if you have the <execinfo.h> header file. */ 
    7777/* #undef HAVE_EXECINFO_H */ 
     78 
     79/* Define to 1 if you have the <fcntl.h> header file. */ 
     80#define HAVE_FCNTL_H 1 
    7881 
    7982/* Define to 1 if you have the `flock' function. */ 
  • box/trunk/lib/win32/emu.h

    r3009 r3011  
    1515#if ! defined EMU_INCLUDE && defined WIN32 
    1616#define EMU_INCLUDE 
     17 
     18// Need feature detection macros below 
     19#include "../common/BoxConfig.h" 
    1720 
    1821// Shut up stupid new warnings. Thanks MinGW! Ever heard of "compatibility"? 
     
    451454// [https://stat.ethz.ch/pipermail/r-devel/2005-May/033339.html] 
    452455#ifndef HAVE_FTRUNCATE 
    453         int ftruncate(int, off_t);  
     456        extern "C" int ftruncate(int, off_t);  
    454457        inline int ftruncate(int __fd, off_t __length)  
    455458        {  
Note: See TracChangeset for help on using the changeset viewer.