Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

config.h

00001 // -*- Socket Streams -*-
00002 
00003 // Copyright (C) 2005 Pedro LamarĂ£o <pedro.lamarao@mndfck.org>
00004 
00005 // This file is part of the Socket Streams Library.  This library is free
00006 // software; you can redistribute it and/or modify it under the
00007 // terms of the GNU Lesser General Public License as published by the
00008 // Free Software Foundation; either version 2.1 of the License
00009 // or (at your option) any later version.
00010 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU Lesser General Public License for more details.
00015 
00016 // You should have received a copy of the GNU Lesser General Public License along
00017 // with this library; see the file COPYING. If not, write to the Free
00018 // Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
00019 // USA
00020 
00021 #ifndef SOCKETSTREAM_CONFIG_H
00022 #define SOCKETSTREAM_CONFIG_H
00023 
00024 #ifdef WIN32
00025 
00026 #include <winsock2.h>
00027 #include <ws2tcpip.h>
00028 
00029 #ifdef SOCKETSTREAM_EXPORTS
00030 # define SOCKETSTREAM_API __declspec(dllexport)
00031 #else
00032 # define SOCKETSTREAM_API __declspec(dllimport)
00033 #endif
00034 
00035 typedef int socklen_t;
00036 
00037 #else // UNIX
00038 
00039 # define SOCKETSTREAM_API
00040 
00041 #endif
00042 
00043 #endif // SOCKETSTREAM_CONFIG_H

Generated on Sat May 21 21:25:32 2005 for Socket Streams Library by  doxygen 1.4.3