summaryrefslogtreecommitdiff
path: root/libproxy/config.hpp
blob: 4efb08dd309f644f199b37b7607c14ad4fcf6f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*******************************************************************************
 * libproxy - A library for proxy configuration
 * Copyright (C) 2010 Nathaniel McCallum <nathaniel@natemccallum.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 ******************************************************************************/

#ifndef CONFIG_HPP_
#define CONFIG_HPP_

#ifdef WIN32
#pragma warning(disable: 4251)
#pragma warning(disable: 4290)
#pragma warning(disable: 4275)
#define DLL_PUBLIC __declspec(dllexport)
#define PATHSEP '\\'
#define MODULEEXT "dll"
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
typedef unsigned __int64 uint64_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int8  uint8_t;
typedef unsigned short int sa_family_t;
#else
#define DLL_PUBLIC __attribute__ ((visibility("default")))
#define PATHSEP '/'
#define MODULEEXT "so"
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <pthread.h>
#endif

#endif /* CONFIG_HPP_ */