Fix build with --std=c++11

PR:		ports/178712
Submitted by:	Volodymyr Kostyrko <c.kworr@gmail.com>
This commit is contained in:
Rene Ladan 2013-07-10 12:18:21 +00:00
parent 43313b8f59
commit d072ab9a2c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322677
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- api/boinc_api.cpp.old 2013-05-17 14:10:37.000000000 +0300
+++ api/boinc_api.cpp 2013-05-17 14:10:49.000000000 +0300
@@ -111,7 +111,7 @@
// CPPFLAGS=-DGETRUSAGE_IN_TIMER_THREAD
#endif
-const char* api_version="API_VERSION_"PACKAGE_VERSION;
+const char* api_version="API_VERSION_" PACKAGE_VERSION;
static APP_INIT_DATA aid;
static FILE_LOCK file_lock;
APP_CLIENT_SHM* app_client_shm = 0;

View file

@ -0,0 +1,10 @@
--- client/client_msgs.h.old 2013-05-17 14:13:10.000000000 +0300
+++ client/client_msgs.h 2013-05-17 14:13:20.000000000 +0300
@@ -73,6 +73,6 @@
__attribute__ ((format (printf, 4, 5)))
;
-#define _(x) "_(\""x"\")"
+#define _(x) "_(\"" x"\")"
#endif