Use VERSION define from config.h.
bool sb_only = false;
bool used_sectors = false;
- printf("dumpexfat %u.%u.%u\n",
- EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+ printf("dumpexfat %s\n", VERSION);
while ((opt = getopt(argc, argv, "suV")) != -1)
{
const char* spec = NULL;
struct exfat ef;
- printf("exfatfsck %u.%u.%u\n",
- EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+ printf("exfatfsck %s\n", VERSION);
while ((opt = getopt(argc, argv, "V")) != -1)
{
struct fuse* fh = NULL;
int opt;
- printf("FUSE exfat %u.%u.%u\n",
- EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+ printf("FUSE exfat %s\n", VERSION);
mount_options = strdup(default_options);
if (mount_options == NULL)
for (pp = argv + 1; *pp; pp++)
if (strcmp(*pp, "-V") == 0)
{
- printf("exfatlabel %u.%u.%u\n", EXFAT_VERSION_MAJOR,
- EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+ printf("exfatlabel %s\n", VERSION);
puts("Copyright (C) 2011-2015 Andrew Nayenko");
return 0;
}
platform.h \
time.c \
utf.c \
- utils.c \
- version.h
+ utils.c
#include "config.h"
#include "compiler.h"
#include "exfatfs.h"
-#include "version.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
+++ /dev/null
-/*
- version.h (12.06.10)
- Version constants.
-
- Free exFAT implementation.
- Copyright (C) 2010-2015 Andrew Nayenko
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
-
-#ifndef VERSION_H_INCLUDED
-#define VERSION_H_INCLUDED
-
-#define EXFAT_VERSION_MAJOR 1
-#define EXFAT_VERSION_MINOR 1
-#define EXFAT_VERSION_PATCH 0
-
-#endif /* ifndef VERSION_H_INCLUDED */
uint64_t first_sector = 0;
struct exfat_dev* dev;
- printf("mkexfatfs %u.%u.%u\n",
- EXFAT_VERSION_MAJOR, EXFAT_VERSION_MINOR, EXFAT_VERSION_PATCH);
+ printf("mkexfatfs %s\n", VERSION);
while ((opt = getopt(argc, argv, "i:n:p:s:V")) != -1)
{