Skip to content

Commit

Permalink
fix: fixed macOS compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ncvicchi committed Dec 3, 2024
1 parent 9436ca5 commit 52e996c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/utils/include/os_macros.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#pragma once
// TODO: Double check this Critical error handling
/* for calloc: x = calloc(4,sizeof(char)) -> os_calloc(4,sizeof(char),x) */

#include <errno.h>
#include <malloc.h>
#include <stdlib.h>
#include "error_messages.h"


Expand Down
2 changes: 2 additions & 0 deletions src/common/utils/include/wrapper_macros.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include "os_macros.h"

#define w_fclose(x) if (x) { fclose(x); x=NULL; }
Expand Down

0 comments on commit 52e996c

Please sign in to comment.