Skip to content

Modern C and compatibility fixes - #1022

Merged
smorimoto merged 6 commits into
ocsigen:masterfrom
MisterDA:modern-c
Jul 27, 2024
Merged

smorimoto merged 6 commits into
ocsigen:masterfrom
MisterDA:modern-c

Conversation

@MisterDA

Copy link
Copy Markdown
Contributor

This PR:

  • Fixes modern C89/C99/C11/C17 compilers requiring (void) (no parameter) instead of () (pre C89 any parameter);
  • Fixes mincore detection on BSD and macOS;
  • Fixes a compatibility issue with caml_convert_flag_list taking an int * in OCaml 4 and a const int * in OCaml 5, with a minor header reordering;
  • Fixes a sign comparison warning.

MisterDA added 2 commits June 20, 2024 11:45
This allows configuring caml headers first, and then overwriting
declarations (for compatibility).
@smorimoto
smorimoto merged commit 48abed7 into ocsigen:master Jul 27, 2024
@MisterDA
MisterDA deleted the modern-c branch July 27, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants