Unverified Commit 341db256 by Eddie Hung Committed by GitHub

Merge pull request #6 from whitequark/wasi-signal

Add missing WASI platform support for signal.h
parents fd2c9b1c 81febe5d
...@@ -49,7 +49,9 @@ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. ...@@ -49,7 +49,9 @@ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#include <sys/times.h> #include <sys/times.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <unistd.h> #include <unistd.h>
#if !defined(__wasm)
#include <signal.h> #include <signal.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#endif #endif
......
...@@ -28,20 +28,18 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA ...@@ -28,20 +28,18 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
# include <sys/int_fmtio.h> # include <sys/int_fmtio.h>
# include <sys/int_limits.h> # include <sys/int_limits.h>
#else #elif _WIN32
#define __STDC_LIMIT_MACROS
# include "pstdint.h" # include "pstdint.h"
//# include <inttypes.h>
#endif #else
#include <limits.h> # define __STDC_LIMIT_MACROS
# include <limits.h>
# include <inttypes.h>
#ifndef PRIu64
#define PRIu64 "lu"
#define PRIi64 "ld"
#endif #endif
//================================================================================================= //=================================================================================================
#include <misc/util/abc_namespaces.h> #include <misc/util/abc_namespaces.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment