comparison src/win_gaim.c @ 11441:9f6df41df587

[gaim-migrate @ 13678] Update for win32api-3.3. The mingw_plus stuff isn't necessary anymore :). Define _WIN32_WINNT 0x0501 for src/*, this fixes a compile error for getaddrinfo - this *shouldn't* break Win98/ME because the functions are still there - just defined in a different header. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 04 Sep 2005 18:30:15 +0000
parents e865bdbbf91d
children d83e1fe99d69
comparison
equal deleted inserted replaced
11440:5938f6b386fa 11441:9f6df41df587
23 * along with this program; if not, write to the Free Software 23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 * 25 *
26 */ 26 */
27 27
28 #ifndef _WIN32_WINNT
29 # define _WIN32_WINNT 0x0501
30 #endif
31 #include <windows.h> 28 #include <windows.h>
32 #include <fcntl.h> 29 #include <fcntl.h>
33 #include <stdlib.h> 30 #include <stdlib.h>
34 #include <string.h> 31 #include <string.h>
35 #include <stdio.h> 32 #include <stdio.h>
36
37 /** Currently missing from win32-api */
38 #ifndef ATTACH_PARENT_PROCESS
39 # define ATTACH_PARENT_PROCESS -1
40 #endif
41 33
42 #define WIN32_PROXY_REGKEY "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings" 34 #define WIN32_PROXY_REGKEY "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"
43 35
44 typedef int (CALLBACK* LPFNGAIMMAIN)(HINSTANCE, int, char**); 36 typedef int (CALLBACK* LPFNGAIMMAIN)(HINSTANCE, int, char**);
45 typedef void (CALLBACK* LPFNSETDLLDIRECTORY)(LPCTSTR); 37 typedef void (CALLBACK* LPFNSETDLLDIRECTORY)(LPCTSTR);