Skip to content

Commit 8e98eb0

Browse files
committed
Missing if defined(json)
1 parent 62023b6 commit 8e98eb0

File tree

1 file changed

+2
-0
lines changed
  • srcwrtimer/addons/sourcemod/scripting/include/srcwr

1 file changed

+2
-0
lines changed

srcwrtimer/addons/sourcemod/scripting/include/srcwr/http.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ typeset SRCWRWebsocketMsgCallback {
164164
methodmap SRCWRWebsocket < Handle {
165165
public native SRCWRWebsocket();
166166
public native bool header(const char[] key, const char[] value, any ...);
167+
#if defined _srcwr_json_included
167168
public native bool write_json(SRCWRJSON json);
169+
#endif
168170
public native bool write_str(const char[] content, any ...);
169171
public native bool YEET(
170172
SRCWRWebsocketConnectionCallback connectcb

0 commit comments

Comments
 (0)