00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of either: 00004 * 00005 * a) The GNU Lesser General Public License as published by the Free 00006 * Software Foundation; either version 2.1, or (at your option) any 00007 * later version, 00008 * 00009 * OR 00010 * 00011 * b) The two-clause BSD license. 00012 * 00013 * These licenses can be found with the distribution in the file LICENSES 00014 */ 00015 00016 00017 00018 00019 #ifdef _WIN32 00020 00021 #ifndef INC_SPF_WIN32 00022 #define INC_SPF_WIN32 00023 00024 00025 #include <time.h> 00026 00027 #include <winsock2.h> 00028 #pragma comment(lib, "ws2_32.lib") 00029 #include <ws2tcpip.h> 00030 #include <windows.h> 00031 00032 00033 /* ********************************************************************* */ 00034 00035 /* 00036 * SPF startup and cleanup for Win32 00037 */ 00038 00039 /* 00040 * These routines basically just startup and cleanup the Winsock layer 00041 * with a version is known to work with this library (version 2.2). 00042 * If Winsock startup and cleanup is already being performed by the 00043 * application, then these calls are not necessary. 00044 * 00045 * Otherwise, startup must be done before any other calls, and cleanup 00046 * should be called when the application is done with the library. 00047 */ 00048 #ifdef _WIN32 00049 int SPF_win32_startup(); 00050 int SPF_win32_cleanup(); 00051 #endif 00052 00053 00054 00055 #define __attribute__(n) 00056 00057 00058 00059 #endif 00060 00061 #endif