mirror of
https://github.com/janet-lang/janet
synced 2026-09-21 16:38:41 +00:00
Move declarations around for header fixes.
This commit is contained in:
+15
-9
@@ -39,15 +39,6 @@
|
|||||||
#ifndef JANET_WINDOWS
|
#ifndef JANET_WINDOWS
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef JANET_WINDOWS
|
|
||||||
typedef struct {
|
|
||||||
union {
|
|
||||||
OVERLAPPED overlapped;
|
|
||||||
WSAOVERLAPPED wsaoverlapped;
|
|
||||||
} as;
|
|
||||||
uint32_t bytes_transfered;
|
|
||||||
} JanetOverlapped;
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(JANET_REDUCED_OS) || !defined(JANET_SINGLE_THREADED)
|
#if !defined(JANET_REDUCED_OS) || !defined(JANET_SINGLE_THREADED)
|
||||||
@@ -212,6 +203,21 @@ char *get_processed_name(const char *name);
|
|||||||
#define RETRY_EINTR(RC, CALL) do { (RC) = CALL; } while((RC) < 0 && errno == EINTR)
|
#define RETRY_EINTR(RC, CALL) do { (RC) = CALL; } while((RC) < 0 && errno == EINTR)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef JANET_EV
|
||||||
|
#ifdef JANET_WINDOWS
|
||||||
|
#include <winsock2.h>
|
||||||
|
#include <windows.h>
|
||||||
|
#include <io.h>
|
||||||
|
typedef struct {
|
||||||
|
union {
|
||||||
|
OVERLAPPED overlapped;
|
||||||
|
WSAOVERLAPPED wsaoverlapped;
|
||||||
|
} as;
|
||||||
|
uint32_t bytes_transfered;
|
||||||
|
} JanetOverlapped;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Initialize builtin libraries */
|
/* Initialize builtin libraries */
|
||||||
void janet_lib_io(JanetTable *env);
|
void janet_lib_io(JanetTable *env);
|
||||||
void janet_lib_math(JanetTable *env);
|
void janet_lib_math(JanetTable *env);
|
||||||
|
|||||||
Reference in New Issue
Block a user