Code cleanup: remove defines no longer needed on windows
This commit is contained in:
parent
ea6fba2926
commit
fa25d7cf7b
|
@ -38,10 +38,6 @@
|
|||
# include <unistd.h> // for read close
|
||||
#else
|
||||
# include <io.h> // for open close read
|
||||
# define open _open
|
||||
# define read _read
|
||||
# define close _close
|
||||
# define write _write
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -40,11 +40,6 @@
|
|||
|
||||
#include <time.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# define open _open
|
||||
# define close _close
|
||||
#endif
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "IMB_colormanagement.h"
|
||||
|
|
|
@ -41,11 +41,6 @@
|
|||
|
||||
#include <time.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# define open _open
|
||||
# define close _close
|
||||
#endif
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "DNA_constraint_types.h"
|
||||
|
|
|
@ -59,14 +59,6 @@
|
|||
#include "BKE_report.h"
|
||||
#include "BKE_sound.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define open _open
|
||||
#define close _close
|
||||
#define read _read
|
||||
#define write _write
|
||||
#endif
|
||||
|
||||
|
||||
int seekPackedFile(PackedFile *pf, int offset, int whence)
|
||||
{
|
||||
int oldseek = -1, seek = 0;
|
||||
|
|
|
@ -37,9 +37,6 @@
|
|||
# include <stddef.h>
|
||||
# include <sys/types.h>
|
||||
# include "mmap_win.h"
|
||||
# define open _open
|
||||
# define read _read
|
||||
# define close _close
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -34,9 +34,6 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
# include <io.h>
|
||||
# define open _open
|
||||
# define read _read
|
||||
# define close _close
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
Loading…
Reference in New Issue