fix C++ comments

vc2010 build fixes for new libretro-common
This commit is contained in:
zeromus 2016-03-21 01:33:12 +00:00
parent a009d2ac13
commit 86fe433eed
6 changed files with 18 additions and 7 deletions

View File

@ -23,10 +23,14 @@
#ifndef _LIBRETRO_COMMON_RETRO_COMMON_H
#define _LIBRETRO_COMMON_RETRO_COMMON_H
//This file is designed to normalize the libretro-common compiling environment.
//It is not to be used in public API headers, as they should be designed as leanly as possible.
/*
This file is designed to normalize the libretro-common compiling environment.
It is not to be used in public API headers, as they should be designed as leanly as possible.
Nonetheless.. in the meantime, if you do something like use ssize_t, which is not fully portable,
in a public API, you may need this.
*/
//conditional compilation is handled inside here
/* conditional compilation is handled inside here */
#include <compat/msvc.h>
#endif

View File

@ -178,7 +178,9 @@ static std::map<lua_CFunction, const char*> s_cFuncInfoMap;
static int name(lua_State* L)
#ifdef _MSC_VER
#define snprintf _snprintf
#ifndef snprintf
#define snprintf _snprintf
#endif
#define vscprintf _vscprintf
#else
#define stricmp strcasecmp

View File

@ -97,9 +97,6 @@
#ifdef _MSC_VER
#include <compat/msvc.h>
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#else
#define WINAPI
#endif

View File

@ -18,8 +18,12 @@
#pragma warning(disable: 4800) // forcing value to bool 'true' or 'false'
// Rename symbols.
#ifndef vsnprintf
#define vsnprintf _vsnprintf
#endif
#ifndef snprintf
#define snprintf _snprintf
#endif
#endif // _MSC_VER

View File

@ -540,6 +540,7 @@
<ClCompile Include="..\libretro-common\compat\compat_fnmatch.c" />
<ClCompile Include="..\libretro-common\compat\compat_getopt.c" />
<ClCompile Include="..\libretro-common\compat\compat_posix_string.c" />
<ClCompile Include="..\libretro-common\compat\compat_snprintf.c" />
<ClCompile Include="..\libretro-common\compat\compat_strcasestr.c" />
<ClCompile Include="..\libretro-common\compat\compat_strl.c" />
<ClCompile Include="..\libretro-common\file\dir_list.c" />

View File

@ -960,6 +960,9 @@
<ClCompile Include="..\libretro-common\rthreads\rsemaphore.c">
<Filter>Core\libretro-common\rthreads</Filter>
</ClCompile>
<ClCompile Include="..\libretro-common\compat\compat_snprintf.c">
<Filter>Core\libretro-common\compat</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\armcpu.h">