fix C++ comments
vc2010 build fixes for new libretro-common
This commit is contained in:
parent
a009d2ac13
commit
86fe433eed
|
@ -23,10 +23,14 @@
|
||||||
#ifndef _LIBRETRO_COMMON_RETRO_COMMON_H
|
#ifndef _LIBRETRO_COMMON_RETRO_COMMON_H
|
||||||
#define _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>
|
#include <compat/msvc.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -178,7 +178,9 @@ static std::map<lua_CFunction, const char*> s_cFuncInfoMap;
|
||||||
static int name(lua_State* L)
|
static int name(lua_State* L)
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
#ifndef snprintf
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
|
#endif
|
||||||
#define vscprintf _vscprintf
|
#define vscprintf _vscprintf
|
||||||
#else
|
#else
|
||||||
#define stricmp strcasecmp
|
#define stricmp strcasecmp
|
||||||
|
|
|
@ -97,9 +97,6 @@
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <compat/msvc.h>
|
#include <compat/msvc.h>
|
||||||
|
|
||||||
#if _MSC_VER < 1900
|
|
||||||
#define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
#define WINAPI
|
#define WINAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -18,8 +18,12 @@
|
||||||
#pragma warning(disable: 4800) // forcing value to bool 'true' or 'false'
|
#pragma warning(disable: 4800) // forcing value to bool 'true' or 'false'
|
||||||
|
|
||||||
// Rename symbols.
|
// Rename symbols.
|
||||||
|
#ifndef vsnprintf
|
||||||
#define vsnprintf _vsnprintf
|
#define vsnprintf _vsnprintf
|
||||||
|
#endif
|
||||||
|
#ifndef snprintf
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
|
|
|
@ -540,6 +540,7 @@
|
||||||
<ClCompile Include="..\libretro-common\compat\compat_fnmatch.c" />
|
<ClCompile Include="..\libretro-common\compat\compat_fnmatch.c" />
|
||||||
<ClCompile Include="..\libretro-common\compat\compat_getopt.c" />
|
<ClCompile Include="..\libretro-common\compat\compat_getopt.c" />
|
||||||
<ClCompile Include="..\libretro-common\compat\compat_posix_string.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_strcasestr.c" />
|
||||||
<ClCompile Include="..\libretro-common\compat\compat_strl.c" />
|
<ClCompile Include="..\libretro-common\compat\compat_strl.c" />
|
||||||
<ClCompile Include="..\libretro-common\file\dir_list.c" />
|
<ClCompile Include="..\libretro-common\file\dir_list.c" />
|
||||||
|
|
|
@ -960,6 +960,9 @@
|
||||||
<ClCompile Include="..\libretro-common\rthreads\rsemaphore.c">
|
<ClCompile Include="..\libretro-common\rthreads\rsemaphore.c">
|
||||||
<Filter>Core\libretro-common\rthreads</Filter>
|
<Filter>Core\libretro-common\rthreads</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\libretro-common\compat\compat_snprintf.c">
|
||||||
|
<Filter>Core\libretro-common\compat</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\armcpu.h">
|
<ClInclude Include="..\armcpu.h">
|
||||||
|
|
Loading…
Reference in New Issue