Code cleanup: remove defines no longer needed on windows
authorCampbell Barton <ideasman42@gmail.com>
Thu, 1 May 2014 14:54:42 +0000 (00:54 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 1 May 2014 14:55:54 +0000 (00:55 +1000)
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/image.c
source/blender/blenkernel/intern/movieclip.c
source/blender/blenkernel/intern/packedFile.c
source/blender/imbuf/intern/readimage.c
source/blender/imbuf/intern/util.c

index 468d39709d7ca84f1c903dbcf3dede4bec8b898e..3d323db26238708c35f855c4842f049d895c398b 100644 (file)
 #  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>
index dec890c4b685429f0b02bbb2056a9c292aade754..440320e98fe1b80a2e39434898359231d16eb8bf 100644 (file)
 
 #include <time.h>
 
-#ifdef _WIN32
-#  define open _open
-#  define close _close
-#endif
-
 #include "MEM_guardedalloc.h"
 
 #include "IMB_colormanagement.h"
index a69d8d3ee7eb6ed234ee361d65e190a12850107a..35bf453c3283ce30b2f2ef6296d873c7b4f8d19d 100644 (file)
 
 #include <time.h>
 
-#ifdef _WIN32
-#  define open _open
-#  define close _close
-#endif
-
 #include "MEM_guardedalloc.h"
 
 #include "DNA_constraint_types.h"
index 6c86554ad77975c5fc988989a6e96fa02ef668df..dafe5ca55ff5110f9a4dc0ac97040f403a5c05eb 100644 (file)
 #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;
index 1124d06f851db886a74c23f76a57c1d68ff433d2..f0bcfcea62d4401c8eebaedc657c88aaff55faff 100644 (file)
@@ -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>
index 052059e3a5ead8fea157ea7e5ea316414df0147d..fbb28849ce65e25a5926e1a5f4123d24a91cd59f 100644 (file)
@@ -34,9 +34,6 @@
 
 #ifdef _WIN32
 #  include <io.h>
-#  define open _open
-#  define read _read
-#  define close _close
 #endif
 
 #include <stdlib.h>