Skip to content

Commit

Permalink
Refactor headers and remove platform-specific directives
Browse files Browse the repository at this point in the history
Removed the `#define _GNU_SOURCE` directive and the `#ifdef _WIN32` block along with its corresponding `#else` block. Added `#include "mex.h"`, `#include "../AppModel/include/app_api.h"`, and `#include <string.h>`. These changes streamline the code by removing platform-specific dependencies and incorporating the MEX API and application model headers.
  • Loading branch information
ptahmose committed Oct 18, 2024
1 parent 57e5b46 commit 757bfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OctaveMex/octavelibczi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define MX_HAS_INTERLEAVED_COMPLEX 1
#define _GNU_SOURCE
#ifdef _WIN32
#include <Windows.h>
Expand All @@ -9,6 +8,7 @@
#include <unistd.h>
#endif

#define MX_HAS_INTERLEAVED_COMPLEX 1
#include "mex.h"
#include "../AppModel/include/app_api.h"
#include <string.h>
Expand Down

0 comments on commit 757bfa1

Please sign in to comment.