Merge pull request #1 from Selectronic-AU/feature/battries_msvc_port_fix

Excluding windows api from portmacro.h and adding it to port.c
This commit is contained in:
Ghufran Khan 2025-04-01 14:23:17 +11:00 committed by GitHub
commit b942fdaad0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 9 deletions

View file

@ -33,6 +33,17 @@
#include "FreeRTOS.h"
#include "task.h"
#ifdef WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#else
#include <winsock.h>
#endif
#include <windows.h>
#include <timeapi.h>
#include <mmsystem.h>
#include <winbase.h>
#ifdef __GNUC__
#include "mmsystem.h"
#else

View file

@ -29,16 +29,7 @@
#ifndef PORTMACRO_H
#define PORTMACRO_H
#ifdef WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#else
#include <winsock.h>
#endif
#include <windows.h>
#include <timeapi.h>
#include <mmsystem.h>
#include <winbase.h>
/******************************************************************************
* Defines