From 33946770bb4c0ddabf1defe8ccfa76a9053faa2f Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Tue, 6 Sep 2016 00:22:26 +0300 Subject: [PATCH] (profiler_core) Windows build fix --- include/profiler/profiler.h | 2 +- src/profile_manager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/profiler/profiler.h b/include/profiler/profiler.h index cd1e5d0..55e9b74 100644 --- a/include/profiler/profiler.h +++ b/include/profiler/profiler.h @@ -220,7 +220,7 @@ namespace profiler { uint32_t PROFILER_API dumpBlocksToFile(const char* filename); void PROFILER_API setThreadName(const char* name, const char* filename, const char* _funcname, int line); void PROFILER_API setContextSwitchLogFilename(const char* name); - const char* PROFILER_API getContextSwitchLogFilename(); + PROFILER_API const char* getContextSwitchLogFilename(); } typedef uint64_t timestamp_t; diff --git a/src/profile_manager.cpp b/src/profile_manager.cpp index c95536c..a9ad6a7 100644 --- a/src/profile_manager.cpp +++ b/src/profile_manager.cpp @@ -54,7 +54,7 @@ extern "C"{ return MANAGER.setContextSwitchLogFilename(name); } - const char* PROFILER_API getContextSwitchLogFilename() + PROFILER_API const char* getContextSwitchLogFilename() { return MANAGER.getContextSwitchLogFilename(); }