Skip to content

Commit

Permalink
Dont include dlfcn.h on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
brummer10 committed Aug 31, 2023
1 parent a66a3e6 commit f7fae72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/NeuralCapture/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ FILES_UI = \
UI_TYPE = cairo
include ../../dpf/Makefile.plugins.mk

BUILD_CXX_FLAGS += `pkg-config --cflags sndfile` `pkg-config --libs sndfile`
BUILD_CXX_FLAGS += -pthread -lrt `pkg-config --cflags sndfile` `pkg-config --libs sndfile`

# --------------------------------------------------------------
# Enable all selected plugin types
Expand Down
6 changes: 6 additions & 0 deletions plugins/NeuralCapture/profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@

#include <libgen.h>
#include <stdio.h>

#if defined(WIN32) || defined(_WIN32)
#include <windows.h>
#else
#include <dlfcn.h>
#endif

#include <fstream>
#include <functional>

Expand Down

0 comments on commit f7fae72

Please sign in to comment.