libetpan - fdik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

104 lines
1.8 KiB

#ifndef LIBETPAN_CONFIG_H
#define LIBETPAN_CONFIG_H
#ifdef _MSC_VER
#ifndef WIN32
#define WIN32 1
#endif
#endif
#ifdef WIN32
# define PATH_MAX 512
// Windows API security level
# define SECURITY_WIN32
# ifdef __cplusplus
# define PropVariantInit __inline PropVariantInit
# pragma warning( push )
# pragma warning( disable : 4005 4141 )
# endif
# include <tchar.h>
# include <stdio.h>
# include <string.h>
# include <io.h>
# include <Winsock2.h>
# ifdef __cplusplus
# pragma warning( pop )
# undef PropVariantInit
# endif
# if !defined(snprintf)
# define snprintf _snprintf
# endif
# if !defined(strncasecmp)
# define strncasecmp _strnicmp
# endif
# if !defined(strcasecmp)
# define strcasecmp _stricmp
# endif
/* use Windows Types */
# if !defined(uint8_t)
typedef UINT8 uint8_t;
# endif
# if !defined(ssize_t)
typedef SSIZE_T ssize_t;
# endif
# if !defined(uint16_t)
typedef UINT16 uint16_t;
# endif
# if !defined(int16_t)
typedef INT16 int16_t;
# endif
# if !defined(uint32_t)
typedef UINT32 uint32_t;
# endif
# if !defined(int32_t)
typedef INT32 int32_t;
# endif
# if !defined(uint64_t)
typedef UINT64 uint64_t;
# endif
# if !defined(int64_t)
typedef INT64 int64_t;
# endif
# if !defined(pid_t)
typedef int pid_t;
# endif
# if !defined(caddr_t)
typedef void * caddr_t;
# endif
/* avoid config.h*/
# define CONFIG_H
#endif // WIN32
#include <limits.h>
#ifdef _MSC_VER
# define MMAP_UNAVAILABLE
# define inline __inline
#else
# include <sys/param.h>
#endif
#define MAIL_DIR_SEPARATOR '/'
#define MAIL_DIR_SEPARATOR_S "/"
#ifdef _MSC_VER
# ifdef LIBETPAN_DLL
# define LIBETPAN_EXPORT __declspec(dllexport)
# else
# define LIBETPAN_EXPORT __declspec(dllimport)
# endif
#else
# define LIBETPAN_EXPORT
#endif
/* REENTRANT under WINDOWS */
#ifndef LIBETPAN_REENTRANT
# define LIBETPAN_REENTRANT 1
#endif
#endif