/******************************************************************************* * libproxy - A library for proxy configuration * Copyright (C) 2010 Nathaniel McCallum * * 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 #include #include 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 #include #include #include #include #endif #endif /* CONFIG_HPP_ */