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(); }