mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Build fixes for Mac OS X, thanks to Alex
svn path=/trunk/; revision=28406
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__APPLE__)
|
||||
# include <sys/stat.h>
|
||||
#endif // __FreeBSD__
|
||||
#include "cabinet.h"
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
# include <io.h>
|
||||
# include <dos.h>
|
||||
#else
|
||||
# ifdef __FreeBSD__
|
||||
# if defined(__FreeBSD__) || defined(__APPLE__)
|
||||
# include <sys/uio.h>
|
||||
# else
|
||||
# include <sys/io.h>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#ifndef __FreeBSD__
|
||||
#if !defined(__FreeBSD__) && !defined(__APPLE__)
|
||||
# include <malloc.h>
|
||||
#endif // __FreeBSD__
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__APPLE__)
|
||||
# include <stdlib.h>
|
||||
#else
|
||||
# include <malloc.h>
|
||||
@@ -34,7 +34,7 @@ inline int iswdigit ( wchar_t c )
|
||||
}
|
||||
#endif//WIN32
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#if defined(__FreeBSD__) || defined(__APPLE__)
|
||||
# define __isnan isnan
|
||||
# define __finite finite
|
||||
# define powl __builtin_powl
|
||||
|
||||
@@ -99,7 +99,7 @@ filelen ( FILE* f )
|
||||
#ifdef WIN32
|
||||
return _filelengthi64 ( _fileno(f) );
|
||||
#else
|
||||
# ifdef __FreeBSD__
|
||||
# if defined(__FreeBSD__) || defined(__APPLE__)
|
||||
struct stat file_stat;
|
||||
if ( fstat(fileno(f), &file_stat) != 0 )
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user