Skip to content

Commit

Permalink
COMPAT: Get bool from stdbool.h
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Sep 2, 2024
1 parent 7bd9c71 commit dc70a82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/c/jpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ refactoring (trivial):
#include <config.h>
#include <SWI-Stream.h>
#include <SWI-Prolog.h>
#include <stdbool.h>

#ifdef __WINDOWS__
/* OS-specific header (SWI-Prolog FLI and Java Invocation API both seem to need
Expand Down Expand Up @@ -206,8 +207,6 @@ struct Hr_Table
};

typedef intptr_t pointer; /* for JPL */
typedef int bool; /* for JNI/JPL functions returning */
/* only TRUE or FALSE */

/*=== JNI constants: sizes of JNI primitive types ========================= */

Expand Down

0 comments on commit dc70a82

Please sign in to comment.