cdvdgigaherz: Avoid LL after date in library name string

This commit is contained in:
Jonathan Li 2017-04-11 00:31:14 +01:00
parent e91194994f
commit cf131b51a2
1 changed files with 5 additions and 8 deletions

View File

@ -29,9 +29,6 @@ static std::mutex s_keepalive_lock;
static std::condition_variable s_keepalive_cv; static std::condition_variable s_keepalive_cv;
static std::thread s_keepalive_thread; static std::thread s_keepalive_thread;
#define STRFY(x) #x
#define TOSTR(x) STRFY(x)
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// State Information // // State Information //
@ -50,11 +47,11 @@ int cmode;
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Plugin Interface // // Plugin Interface //
char LibName[] = "cdvdGigaherz " #ifndef PCSX2_DEBUG
#ifdef PCSX2_DEBUG static std::string s_libname("cdvdGigaherz " + std::to_string(SVN_REV));
" Debug " #else
static std::string s_libname("cdvdGigaherz Debug " + std::to_string(SVN_REV));
#endif #endif
"(" TOSTR(SVN_REV) ")";
const unsigned char version = PS2E_CDVD_VERSION; const unsigned char version = PS2E_CDVD_VERSION;
const unsigned char revision = 0; const unsigned char revision = 0;
@ -62,7 +59,7 @@ const unsigned char build = 11;
EXPORT const char *CALLBACK PS2EgetLibName() EXPORT const char *CALLBACK PS2EgetLibName()
{ {
return LibName; return s_libname.c_str();
} }
EXPORT u32 CALLBACK PS2EgetLibType() EXPORT u32 CALLBACK PS2EgetLibType()