commit 3c4cfa730280cac0a671f18b526ba32a951782ed
parent a52213d3f856911cb8713275863a6e451d475a3f
Author: Patrick Desaulniers <patrick.desaulniers36@gmail.com>
Date: Sun, 23 May 2021 20:05:33 -0400
Fix build with DGL_FILE_BROWSER_DISABLED
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dgl/src/WindowPrivateData.cpp b/dgl/src/WindowPrivateData.cpp
@@ -426,6 +426,7 @@ bool Window::PrivateData::removeIdleCallback(IdleCallback* const callback)
return puglStopTimer(view, (uintptr_t)callback) == PUGL_SUCCESS;
}
+#ifndef DGL_FILE_BROWSER_DISABLED
// -----------------------------------------------------------------------
// file handling
@@ -536,6 +537,7 @@ bool Window::PrivateData::openFileBrowser(const Window::FileBrowserOptions& opti
return false;
}
+#endif
// -----------------------------------------------------------------------
// modal handling
diff --git a/dgl/src/WindowPrivateData.hpp b/dgl/src/WindowPrivateData.hpp
@@ -143,8 +143,10 @@ struct Window::PrivateData : IdleCallback {
bool addIdleCallback(IdleCallback* callback, uint timerFrequencyInMs);
bool removeIdleCallback(IdleCallback* callback);
+#ifndef DGL_FILE_BROWSER_DISABLED
// file handling
bool openFileBrowser(const Window::FileBrowserOptions& options);
+#endif
// modal handling
void startModal();