Skip to content

Commit

Permalink
Pragma fixes for Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
samypr100 committed Feb 14, 2023
1 parent 07c074e commit 149f14f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/open3d/utility/Helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ template <typename... Args>
inline std::string FastFormatString(const std::string& format, Args... args) {
#ifdef _WIN32
return FormatString(format, &args...);
#endif // _WIN32
#else
char* buffer = nullptr;
int size_s = asprintf(&buffer, format.c_str(), args...);
if (size_s == -1) {
Expand All @@ -186,6 +186,7 @@ inline std::string FastFormatString(const std::string& format, Args... args) {
buffer + size_s); // no + 1 since we ignore the \0
std::free(buffer); // asprintf calls malloc
return ret;
#endif // _WIN32
};

void Sleep(int milliseconds);
Expand Down

0 comments on commit 149f14f

Please sign in to comment.