Skip to content

Commit

Permalink
fixed fatal error - "io.h not found"
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGAzed committed Sep 8, 2024
1 parent 9e34012 commit d3fdf57
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion program/source/gui/interface/solver.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,22 @@
#include <gui/default.h>

#define STACK_DATA_TYPE state_array_s
#define

#include <structures/abstract/stack.h>

#ifdef WIN32

#include <io.h>
#include <fcntl.h>

int pipe(int pipefd[2]) { return _pipe(pipefd, sizeof(stack_s), _O_BINARY); }

#else

#include <unistd.h>

#endif

__attribute__((constructor)) static void create_state_queue(void) {
state_provider(CREATE_DS);
}
Expand Down

0 comments on commit d3fdf57

Please sign in to comment.