Skip to content

Commit

Permalink
Add Unix-like system support in octavelibczi.c
Browse files Browse the repository at this point in the history
Introduce conditional compilation for non-Windows platforms by
defining _GNU_SOURCE and including necessary headers (dlfcn.h,
limits.h, stdlib.h, unistd.h) when _WIN32 is not defined. This
enhances compatibility and functionality for Unix-like systems.
  • Loading branch information
ptahmose committed Oct 18, 2024
1 parent 0d20879 commit c3a21b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OctaveMex/octavelibczi.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifdef _WIN32
#include <Windows.h>
#else
#define _GNU_SOURCE
#include <dlfcn.h>
#include <limits.h>
#include <stdlib.h>
Expand Down

0 comments on commit c3a21b6

Please sign in to comment.