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