common/safewinsock2.h

Go to the documentation of this file.
00001 /* safewinsock2.h: #include <winsock2.h> but working around problems.
00002  *
00003  * Copyright (C) 2007 Olly Betts
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License as
00007  * published by the Free Software Foundation; either version 2 of the
00008  * License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00018  * MA 02110-1301, USA
00019  */
00020 
00021 #ifndef XAPIAN_INCLUDED_SAFEWINSOCK2_H
00022 #define XAPIAN_INCLUDED_SAFEWINSOCK2_H
00023 
00024 #ifndef __WIN32__
00025 # error Including safewinsock2.h, but __WIN32__ isn't defined!
00026 #endif
00027 
00028 // Include windows.h ourselves first to avoid problems with winsock2.h
00029 // including it for us but without our workarounds.
00030 #include "safewindows.h"
00031 
00032 #include <winsock2.h>
00033 
00034 #endif // XAPIAN_INCLUDED_SAFEWINSOCK2_H

Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.