Skip to content

Commit

Permalink
Fix MSVC build: include lean windows.h, include stdlib.h for malloc/free
Browse files Browse the repository at this point in the history
  • Loading branch information
jawelch committed Jan 24, 2025
1 parent cc7caf4 commit 49f2d8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osal/win32/osal_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ extern "C"
{
#endif

#include <minwindef.h>

#define WIN32_LEAN_AND_MEAN // Exclude some conflicting definitions in windows header
#include <windows.h>
// define if debug printf is needed
//#define EC_DEBUG

Expand Down
1 change: 1 addition & 0 deletions oshw/win32/oshw.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include "oshw.h"
#include <stdlib.h>

/**
* Host to Network byte order (i.e. to big endian).
Expand Down

0 comments on commit 49f2d8a

Please sign in to comment.