Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 5f48890

Browse files
committed
why
1 parent d496f18 commit 5f48890

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/core/winapi/ToastNotification.hx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package core.winapi;
33

44
import cpp.Lib;
55

6+
#if cpp
67
@:cppInclude("./external/wintoastlib.h")
7-
@:cppFileCode('
8-
#include "./external/wintoastlib.cpp"
9-
')
8+
@:cppInclude("./external/wintoastlib.cpp")
9+
@:cppFileCode('#define WinToastLib')
10+
#end
1011
class ToastNotification {
1112
public static function showToast(title:String, message:String, duration:String = "Short"):Void {
1213
untyped __cpp__('

0 commit comments

Comments
 (0)