Blame include/exiv2/config.h

Packit Service 21b5d1
// config.h
Packit Service 21b5d1
Packit Service 21b5d1
#ifndef _CONFIG_H_
Packit Service 21b5d1
#define _CONFIG_H_
Packit Service 21b5d1
Packit Service 21b5d1
///// Start of Visual Studio Support /////
Packit Service 21b5d1
#ifdef  _MSC_VER
Packit Service 21b5d1
Packit Service 21b5d1
#define _MSC_VER_2010 1600
Packit Service 21b5d1
#define _MSC_VER_2008 1500
Packit Service 21b5d1
Packit Service 21b5d1
// Constants required by Microsoft SDKs to define SHGetFolderPathA and others
Packit Service 21b5d1
Packit Service 21b5d1
#ifndef _WIN32_WINNT
Packit Service 21b5d1
// Visual Studio 2012 and earlier
Packit Service 21b5d1
# if _MSC_VER < 1800
Packit Service 21b5d1
#  define _WIN32_WINNT 0x0501
Packit Service 21b5d1
# else
Packit Service 21b5d1
#  define _WIN32_WINNT 0x0600
Packit Service 21b5d1
# endif
Packit Service 21b5d1
#endif
Packit Service 21b5d1
Packit Service 21b5d1
#if _MSC_VER >= _MSC_VER_2008
Packit Service 21b5d1
#pragma warning(disable : 4996) // Disable warnings about 'deprecated' standard functions
Packit Service 21b5d1
#pragma warning(disable : 4251) // Disable warnings from std templates about exporting interfaces
Packit Service 21b5d1
#endif
Packit Service 21b5d1
Packit Service 21b5d1
/* On Microsoft compilers pid_t has to be set to int. */
Packit Service 21b5d1
#ifndef HAVE_PID_T
Packit Service 21b5d1
typedef int pid_t;
Packit Service 21b5d1
#endif
Packit Service 21b5d1
Packit Service 21b5d1
#endif // _MSC_VER
Packit Service 21b5d1
///// End of Visual Studio Support /////
Packit Service 21b5d1
Packit Service 21b5d1
#include "exv_conf.h"
Packit Service 21b5d1
////////////////////////////////////////
Packit Service 21b5d1
Packit Service 21b5d1
///// Start of platform marcos /////////
Packit Service 21b5d1
#if defined(__MINGW32__) || defined(__MINGW64__)
Packit Service 21b5d1
# ifndef  __MING__
Packit Service 21b5d1
#  define __MING__  1
Packit Service 21b5d1
# endif
Packit Service 21b5d1
# ifndef  __MINGW__
Packit Service 21b5d1
#  define __MINGW__ 1
Packit Service 21b5d1
# endif
Packit Service 21b5d1
#endif
Packit Service 21b5d1
Packit Service 21b5d1
#ifndef __CYGWIN__
Packit Service 21b5d1
# if defined(__CYGWIN32__) || defined(__CYGWIN64__)
Packit Service 21b5d1
#  define __CYGWIN__ 1
Packit Service 21b5d1
# endif
Packit Service 21b5d1
#endif
Packit Service 21b5d1
Packit Service 21b5d1
#ifndef __LITTLE_ENDIAN__
Packit Service 21b5d1
# if    defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__)
Packit Service 21b5d1
#  if            __BYTE_ORDER__  ==         __ORDER_LITTLE_ENDIAN__
Packit Service 21b5d1
#   define __LITTLE_ENDIAN__ 1
Packit Service 21b5d1
#  endif
Packit Service 21b5d1
# endif
Packit Service 21b5d1
#endif
Packit Service 21b5d1
Packit Service 21b5d1
#ifndef __LITTLE_ENDIAN__
Packit Service 21b5d1
# if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW__)
Packit Service 21b5d1
#  define __LITTLE_ENDIAN__ 1
Packit Service 21b5d1
# endif
Packit Service 21b5d1
#endif
Packit Service 21b5d1
Packit Service 21b5d1
/*
Packit Service 21b5d1
  If you're using Solaris and the Solaris Studio compiler
Packit Service 21b5d1
  you must -library=stdcxx4 along with these inclusions below
Packit Service 21b5d1
*/
Packit Service 21b5d1
#if defined(OS_SOLARIS)
Packit Service 21b5d1
# include <string.h>
Packit Service 21b5d1
# include <strings.h>
Packit Service 21b5d1
# include <math.h>
Packit Service 21b5d1
# if defined(__cplusplus)
Packit Service 21b5d1
#  include <ios>
Packit Service 21b5d1
#  include <fstream>
Packit Service 21b5d1
# endif
Packit Service 21b5d1
#endif
Packit Service 21b5d1
///// End of platform marcos /////////
Packit Service 21b5d1
Packit Service 21b5d1
///// Path separator marcos      /////
Packit Service 21b5d1
#ifndef EXV_SEPARATOR_STR
Packit Service 21b5d1
# if defined(WIN32) && !defined(__CYGWIN__)
Packit Service 21b5d1
#  define EXV_SEPARATOR_STR "\\"
Packit Service 21b5d1
#  define EXV_SEPARATOR_CHR '\\'
Packit Service 21b5d1
# else
Packit Service 21b5d1
#  define EXV_SEPARATOR_STR "/"
Packit Service 21b5d1
#  define EXV_SEPARATOR_CHR '/'
Packit Service 21b5d1
# endif
Packit Service 21b5d1
#endif
Packit Service 21b5d1
//////////////////////////////////////
Packit Service 21b5d1
Packit Service 21b5d1
Packit Service 21b5d1
#endif // _CONFIG_H_