Include it from the Windows version file, at least we only have
to update the version in two places now instead of three.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
struct thread_data;
-#define FIO_MAJOR 1
-#define FIO_MINOR 99
-#define FIO_PATCH 1
-
#include "compiler/compiler.h"
#include "flist.h"
#include "fifo.h"
--- /dev/null
+#ifndef FIO_VERSION_H
+#define FIO_VERSION_H
+
+#define FIO_MAJOR 1
+#define FIO_MINOR 99
+#define FIO_PATCH 1
+
+#endif
#include "lib/getopt.h"
+#include "fio_version.h"
+
#if FIO_PATCH > 0
static char fio_version_string[] = __fio_stringify(FIO_MAJOR) "." \
__fio_stringify(FIO_MINOR) "." \
-#define FIO_VERSION_MAJOR 1\r
-#define FIO_VERSION_MINOR 99\r
-#define FIO_VERSION_BUILD 1\r
+#include "../../fio_version.h"\r
+\r
+#define FIO_VERSION_MAJOR FIO_MAJOR\r
+#define FIO_VERSION_MINOR FIO_MINOR\r
+#define FIO_VERSION_BUILD FIO_PATCH\r
#define FIO_VERSION_STRING "1.99.1"\r
#include "crc/crc16.h"
#include "ieee754.h"
+#include "fio_version.h"
+
int fio_net_port = 8765;
int exit_backend = 0;