Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32video.c @ 2728:2768bd7281e0
Fixed Visual Studio compilation problems
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 26 Aug 2008 07:34:49 +0000 |
parents | f23ebf1ddac4 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2727:76c2fc9696ea | 2728:2768bd7281e0 |
---|---|
108 #endif /* SDL_VIDEO_RENDER_D3D */ | 108 #endif /* SDL_VIDEO_RENDER_D3D */ |
109 | 109 |
110 data->wintabDLL = LoadLibrary(TEXT("WINTAB32.DLL")); | 110 data->wintabDLL = LoadLibrary(TEXT("WINTAB32.DLL")); |
111 if (data->wintabDLL) { | 111 if (data->wintabDLL) { |
112 #define PROCNAME(X) #X | 112 #define PROCNAME(X) #X |
113 data->WTInfo = | 113 data->WTInfoA = |
114 (UINT(*)(UINT, UINT, LPVOID)) GetProcAddress(data->wintabDLL, | 114 (UINT(*)(UINT, UINT, LPVOID)) GetProcAddress(data->wintabDLL, |
115 PROCNAME(WTInfo)); | 115 PROCNAME(WTInfoA)); |
116 data->WTOpen = | 116 data->WTOpenA = |
117 (HCTX(*)(HWND, LPLOGCONTEXT, BOOL)) GetProcAddress(data-> | 117 (HCTX(*)(HWND, LPLOGCONTEXTA, BOOL)) GetProcAddress(data-> |
118 wintabDLL, | 118 wintabDLL, |
119 PROCNAME | 119 PROCNAME |
120 (WTOpen)); | 120 (WTOpenA)); |
121 data->WTPacket = | 121 data->WTPacket = |
122 (int (*)(HCTX, UINT, LPVOID)) GetProcAddress(data->wintabDLL, | 122 (int (*)(HCTX, UINT, LPVOID)) GetProcAddress(data->wintabDLL, |
123 PROCNAME(WTPacket)); | 123 PROCNAME(WTPacket)); |
124 data->WTClose = | 124 data->WTClose = |
125 (BOOL(*)(HCTX)) GetProcAddress(data->wintabDLL, | 125 (BOOL(*)(HCTX)) GetProcAddress(data->wintabDLL, |
126 PROCNAME(WTClose)); | 126 PROCNAME(WTClose)); |
127 #undef PROCNAME | 127 #undef PROCNAME |
128 | 128 |
129 if (!data->WTInfo || !data->WTOpen || !data->WTPacket | 129 if (!data->WTInfoA || !data->WTOpenA || !data->WTPacket |
130 || !data->WTClose) { | 130 || !data->WTClose) { |
131 FreeLibrary(data->wintabDLL); | 131 FreeLibrary(data->wintabDLL); |
132 data->wintabDLL = NULL; | 132 data->wintabDLL = NULL; |
133 } | 133 } |
134 } | 134 } |