libspf2  1.2.11
spf_win32.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of either:
4  *
5  * a) The GNU Lesser General Public License as published by the Free
6  * Software Foundation; either version 2.1, or (at your option) any
7  * later version,
8  *
9  * OR
10  *
11  * b) The two-clause BSD license.
12  *
13  * These licenses can be found with the distribution in the file LICENSES
14  */
15 
16 
17 
18 
19 #ifdef _WIN32
20 
21 #ifndef INC_SPF_WIN32
22 #define INC_SPF_WIN32
23 
24 
25 #include <time.h>
26 
27 #include <winsock2.h>
28 #pragma comment(lib, "ws2_32.lib")
29 #include <ws2tcpip.h>
30 #include <windows.h>
31 
32 
33 /* ********************************************************************* */
34 
35 /*
36  * SPF startup and cleanup for Win32
37  */
38 
39 /*
40  * These routines basically just startup and cleanup the Winsock layer
41  * with a version is known to work with this library (version 2.2).
42  * If Winsock startup and cleanup is already being performed by the
43  * application, then these calls are not necessary.
44  *
45  * Otherwise, startup must be done before any other calls, and cleanup
46  * should be called when the application is done with the library.
47  */
48 #ifdef _WIN32
49 int SPF_win32_startup();
50 int SPF_win32_cleanup();
51 #endif
52 
53 
54 
55 #define __attribute__(n)
56 
57 
58 
59 #endif
60 
61 #endif