dhewm/dhewm3 — pull request #41 by DanielGibson (2012-08-29 21:59:50+00:00)
Title: Fix dedicated Server on Windows (fixes #39)

* removed some duplicate OpenAL functions in the OpenAL stub
* the OpenAL function definitions mustn't include __declspec(dllimport)
=> fixed by pretending to compile OpenAL statically
* glimp.cpp shouldn't be used in dedicated-only mode (as it was already
the case on Linux and OSX)
=> No special handling for ID_DEDICATED needed in glimp.cpp, as it's not
used anyway
* add APIENTRY to every gl function in stub_gl.cpp for compatibility
with windows headers and MSVC
* remove GL/gl.h #include from win_local.h as it's not needed
* in qgl.h, when building dedicated server for windows, redefine WINGDIAPI
to nothing for SDL_opengl.h #include to get rid off __declspec(dllimport)
by using #pragma push_macro and pop_macro, because our stub is no dll.

Note: This was only tested for Win32, not Win64. It was tested with gcc-mingw-w64-i686 4.6.3-5+6 from Debian Wheezy, MSVC 2010 and regular gcc 4.6 on Linux to make sure it doesn't break anything for Linux builds.