summaryrefslogtreecommitdiffstats
path: root/programs/datagen.c
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-20 17:56:09 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-20 17:56:09 (GMT)
commit6adf05d1ed83053b8bb1f762494d2c10fdd8ac1d (patch)
tree3afa2dea862766c1d566b5da90a01d1f5b239a9b /programs/datagen.c
parent2cfef13952c4c7c3d79a9a4748653526d6c85eb0 (diff)
downloadlz4-6adf05d1ed83053b8bb1f762494d2c10fdd8ac1d.zip
lz4-6adf05d1ed83053b8bb1f762494d2c10fdd8ac1d.tar.gz
lz4-6adf05d1ed83053b8bb1f762494d2c10fdd8ac1d.tar.bz2
improved platform.h
Diffstat (limited to 'programs/datagen.c')
-rw-r--r--programs/datagen.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/programs/datagen.c b/programs/datagen.c
index f97c2d0..f44e310 100644
--- a/programs/datagen.c
+++ b/programs/datagen.c
@@ -26,6 +26,7 @@
/**************************************
* Includes
**************************************/
+#include "platform.h" /* Compiler options, SET_BINARY_MODE */
#include <stdlib.h> /* malloc */
#include <stdio.h> /* FILE, fwrite */
#include <string.h> /* memcpy */
@@ -51,18 +52,6 @@
/**************************************
-* OS-specific Includes
-**************************************/
-#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
-# include <fcntl.h> /* _O_BINARY */
-# include <io.h> /* _setmode, _isatty */
-# define SET_BINARY_MODE(file) _setmode(_fileno(file), _O_BINARY)
-#else
-# define SET_BINARY_MODE(file)
-#endif
-
-
-/**************************************
* Constants
**************************************/
#define KB *(1 <<10)