version.cpp Pragma removed. Platform includes simplified.

cmake/packaging.cmake        Changed comment about VS version numbers
v0.27.3
Robin Mills 6 years ago committed by Luis Díaz Más
parent e4cfb6cdcf
commit f4a37c63f2

@ -71,7 +71,7 @@ endif()
set (VS "") # VisualStudio set (VS "") # VisualStudio
if ( MSVC ) if ( MSVC )
# https://gitlab.kitware.com/cmake/cmake/blob/v3.10.0-rc5/Modules/Platform/Windows-MSVC.cmake#L51-68 # VS2015 >= 1900, VS2017 >= 1910, VS2019 >= 1920
if ( MSVC_VERSION GREATER 1919 ) if ( MSVC_VERSION GREATER 1919 )
set(VS 2019) set(VS 2019)
elseif ( MSVC_VERSION GREATER 1909 ) elseif ( MSVC_VERSION GREATER 1909 )

@ -17,10 +17,6 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA. * Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301 USA.
*/ */
/*
File: version.cpp
*/
// ***************************************************************************** // *****************************************************************************
#include "config.h" #include "config.h"
@ -29,16 +25,6 @@
#include <curl/curl.h> #include <curl/curl.h>
#endif #endif
#if defined(__CYGWIN__) || defined(__MINGW__)
#include <windows.h>
# if __LP64__
# ifdef _WIN64
# undef _WIN64
# endif
# define _WIN64 1
# endif
#endif
#include "http.hpp" #include "http.hpp"
#include "version.hpp" #include "version.hpp"
#include "makernote_int.hpp" #include "makernote_int.hpp"
@ -70,15 +56,16 @@
#define _MAX_PATH 512 #define _MAX_PATH 512
#endif #endif
// tell MSVC to link psapi.
#ifdef _MSC_VER
#pragma comment( lib, "psapi" )
#endif
// platform specific support for getLoadedLibraries // platform specific support for getLoadedLibraries
#if defined(WIN32) #if defined(__CYGWIN__) || defined(__MINGW__) || defined(WIN32)
# include <windows.h> # include <windows.h>
# include <psapi.h> # include <psapi.h>
# if __LP64__
# ifdef _WIN64
# undef _WIN64
# endif
# define _WIN64 1
# endif
#elif defined(__APPLE__) #elif defined(__APPLE__)
# include <mach-o/dyld.h> # include <mach-o/dyld.h>
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__)
@ -89,6 +76,8 @@
# include <libprocstat.h> # include <libprocstat.h>
#endif #endif
namespace Exiv2 { namespace Exiv2 {
int versionNumber() int versionNumber()
{ {

Loading…
Cancel
Save