Do not define not needed stuff

main
Luis Díaz Más 3 years ago
parent 7ed43037e3
commit 23da0c3955

@ -965,7 +965,6 @@ static int readFileToBuf(FILE* f,Exiv2::DataBuf& buf)
return nBytes; return nBytes;
} }
//#define DEBUG
void Params::getStdin(Exiv2::DataBuf& buf) void Params::getStdin(Exiv2::DataBuf& buf)
{ {
// copy stdin to stdinBuf // copy stdin to stdinBuf

@ -35,7 +35,6 @@
#include "getopt.hpp" #include "getopt.hpp"
// + standard includes // + standard includes
#include <vector>
#include <set> #include <set>
#include <iostream> #include <iostream>
#include <regex> #include <regex>
@ -44,12 +43,8 @@
#ifndef _MSC_VER #ifndef _MSC_VER
#include <cstdlib> #include <cstdlib>
#include <stdio.h> #include <stdio.h>
#if defined(__CYGWIN__) || defined(__MINGW__)
#include <windows.h>
#else
#include <sys/select.h> #include <sys/select.h>
#endif #endif
#endif
// ***************************************************************************** // *****************************************************************************
// class definitions // class definitions

@ -1,9 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
#if _MSC_VER >= 1400
# pragma warning(disable : 4996)
#endif
// included header files // included header files
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>

@ -26,13 +26,9 @@ namespace fs = std::filesystem;
#include <psapi.h> // For access to GetModuleFileNameEx #include <psapi.h> // For access to GetModuleFileNameEx
#endif #endif
#if defined(_MSC_VER) #if defined(__APPLE__) && defined(EXV_HAVE_LIBPROC_H)
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#elif defined(__APPLE__)
#if defined(EXV_HAVE_LIBPROC_H)
#include <libproc.h> #include <libproc.h>
#endif #endif
#endif
#if defined(__FreeBSD__) #if defined(__FreeBSD__)
#include <sys/mount.h> #include <sys/mount.h>

@ -51,9 +51,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifdef _MSC_VER
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
#ifdef EXV_HAVE_UNISTD_H #ifdef EXV_HAVE_UNISTD_H
# include <unistd.h> // stat # include <unistd.h> // stat
#endif #endif

Loading…
Cancel
Save