solarpowerlog trunk
/home/tobi/workspace/solarpowerlog/src/porting.h
Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002    solarpowerlog
00003    Copyright (C) 2009  Tobias Frost
00004 
00005    This file is part of solarpowerlog.
00006 
00007    Solarpowerlog is free software; However, it is dual-licenced
00008    as described in the file "COPYING".
00009 
00010    For this file (porting.h), the license terms are:
00011 
00012    You can redistribute it and/or  modify it under the terms of the GNU Lesser
00013    General Public License (LGPL) as published by the Free Software Foundation;
00014    either version 3 of the License, or (at your option) any later version.
00015 
00016    This program is distributed in the hope that it will be useful, but
00017    WITHOUT ANY WARRANTY; without even the implied warranty of
00018    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019    Lesser General Public License for more details.
00020 
00021    You should have received a copy of the GNU Library General Public
00022    License along with this proramm; if not, see
00023    <http://www.gnu.org/licenses/>.
00024    ----------------------------------------------------------------------------
00025 */
00026 
00040 #ifndef PORTING_H_
00041 #define PORTING_H_
00042 
00043 #ifndef VERSION
00044 #error include config.h prior this header!
00045 #endif
00046 
00047 
00048 /* Windows stuff : For building under cygwin. */
00049 #ifdef HAVE_WIN32_API
00050 #define _POSIX_SOURCE
00051 #define _WIN32_WINNT 0x0501
00052 #define __USE_W32_SOCKETS 1
00053 #endif
00054 
00056 #ifndef HAVE_EXPLICIT
00057 #define explict
00058 #endif
00059 
00060 
00061 
00062 
00063 #endif /* PORTING_H_ */