Skip to content

Commit

Permalink
Removed macro snprintf. It's only referenced once, and every other ti…
Browse files Browse the repository at this point in the history
…me it's used, _snprintf is used directly.
  • Loading branch information
michael-fadely committed Oct 11, 2015
1 parent b29eb29 commit 178f465
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion SADXModLoader/dllmain.cpp
Expand Up @@ -1987,7 +1987,7 @@ static void __cdecl InitMods(void)
for (int i = 1; i < 999; i++)
{
char key[8];
snprintf(key, sizeof(key), "Mod%d", i);
_snprintf(key, sizeof(key), "Mod%d", i);
if (!settings->hasKey(key))
break;

Expand Down
5 changes: 0 additions & 5 deletions SADXModLoader/include/SADXModLoader.h
Expand Up @@ -13,11 +13,6 @@
#undef PlaySound
#endif

#ifdef _MSC_VER
// MSVC doesn't have snprintf(), but it does have _snprintf().
#define snprintf(str, size, format, ...) _snprintf(str, size, format, __VA_ARGS__)
#endif

// Split-out header files.
#include "ModLoader/MemAccess.h"
#include "SADXModLoader/SADXEnums.h"
Expand Down

0 comments on commit 178f465

Please sign in to comment.