Skip to content

Commit

Permalink
[ci] fix windows msvc compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jan 22, 2025
1 parent 12071fd commit 134ab82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mcx_neurojson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@

#define ALLOC_CHUNK 4096

#ifdef _WIN32
#define popen _popen
#define pclose _pclose
#endif

int runcommand(char* cmd, char* param, char** output) {
int len = ALLOC_CHUNK, pos = 0;
char buffer[256] = {'\0'}, fullcmd[ALLOC_CHUNK] = {'\0'};
Expand Down

0 comments on commit 134ab82

Please sign in to comment.