Skip to content

Commit

Permalink
cmake: Specify NOMINMAX all the time on Windows
Browse files Browse the repository at this point in the history
This prevents the Windows headers from defining min/max macros.
  • Loading branch information
RytoEX committed Oct 12, 2024
1 parent b1fddbc commit 815416a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions UI/multitrack-video-output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#include <QObject>

#define NOMINMAX

class QString;

void StreamStopHandler(void *arg, calldata_t *data);
Expand Down
1 change: 1 addition & 0 deletions cmake/windows/compilerconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ add_compile_options(
)

add_compile_definitions(
NOMINMAX
UNICODE
_UNICODE
_CRT_SECURE_NO_WARNINGS
Expand Down
1 change: 0 additions & 1 deletion plugins/obs-vst/headers/EditorWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QWidget>

#if defined(_WIN32)
#define NOMINMAX
#include <QWindow>
#include <Windows.h>
#elif defined(__linux__)
Expand Down

0 comments on commit 815416a

Please sign in to comment.