Skip to content

Commit

Permalink
using __has_include
Browse files Browse the repository at this point in the history
  • Loading branch information
sliemeobn committed Oct 30, 2024
1 parent e1821ea commit dcdb1c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/_CJavaScriptKit/include/_CJavaScriptKit.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef _CJavaScriptKit_h
#define _CJavaScriptKit_h

#ifndef __wasi__
#include <stddef.h>
#else
#if __has_include("stdlib.h")
#include <stdlib.h>
#else
#include <stddef.h>
#endif
#include <stdbool.h>
#include <stdint.h>
Expand Down

0 comments on commit dcdb1c5

Please sign in to comment.