Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit c22d298

Browse files
committed
Mimic logic to define the OS
1 parent 498db40 commit c22d298

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

appshell/config.h

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,23 @@
2323

2424
#pragma once
2525

26-
#include "include/cef_task.h"
26+
// Taken from cef_build.h
27+
// Including directly cef_build.h causes some problems on Windows.
28+
#if defined(_WIN32)
29+
#ifndef OS_WIN
30+
#define OS_WIN 1
31+
#endif
32+
#elif defined(__APPLE__)
33+
#ifndef OS_MACOSX
34+
#define OS_MACOSX 1
35+
#endif
36+
#elif defined(__linux__)
37+
#ifndef OS_LINUX
38+
#define OS_LINUX 1
39+
#endif
40+
#else
41+
#error Please add support for your platform in config.h
42+
#endif
2743

2844
// Application name used in native code. This name is *not* used in resources.
2945

0 commit comments

Comments
 (0)