Merge pull request #57 from darkstar/msvc
MSVC: Fix some warnings and add proper #defines required for string format specifiers (take 2)
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
* Boston, MA 02111-1307
|
* Boston, MA 02111-1307
|
||||||
* USA.
|
* USA.
|
||||||
*/
|
*/
|
||||||
#ifndef NET_3COME_H
|
#ifndef NET_3COM_H
|
||||||
# define NET_3COM_H
|
# define NET_3COM_H
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -79,9 +79,9 @@ int game_do_log = ENABLE_GAME_LOG;
|
|||||||
void
|
void
|
||||||
game_log(int level, const char *fmt, ...)
|
game_log(int level, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
|
||||||
|
|
||||||
#ifdef ENABLE_GAME_LOG
|
#ifdef ENABLE_GAME_LOG
|
||||||
|
va_list ap;
|
||||||
|
|
||||||
if (game_do_log >= level) {
|
if (game_do_log >= level) {
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
pclog_ex(fmt, ap);
|
pclog_ex(fmt, ap);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>_USE_MATH_DEFINES;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;USE_DYNAREC;USE_OPENAL;USE_SDL</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_USE_MATH_DEFINES;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_CRT_STDIO_ISO_WIDE_SPECIFIERS;USE_DYNAREC;USE_OPENAL;USE_SDL;USE_FLUIDSYNTH</PreprocessorDefinitions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup />
|
<ItemGroup />
|
||||||
|
|||||||
Reference in New Issue
Block a user