Skip to content

Commit 65e6297

Browse files
CrustyAukletpaulbartell
authored andcommitted
Add missing Extern "C" to MSVC portmacro.h
1 parent 9f22177 commit 65e6297

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

portable/MSVC-MingW/portmacro.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
#include <mmsystem.h>
4141
#include <winbase.h>
4242

43+
#ifdef __cplusplus
44+
extern "C" {
45+
#endif
46+
4347
/******************************************************************************
4448
* Defines
4549
******************************************************************************/
@@ -215,4 +219,8 @@ void vPortGenerateSimulatedInterruptFromWindowsThread( uint32_t ulInterruptNumbe
215219
void vPortSetInterruptHandler( uint32_t ulInterruptNumber,
216220
uint32_t ( * pvHandler )( void ) );
217221

222+
#ifdef __cplusplus
223+
}
224+
#endif
225+
218226
#endif /* ifndef PORTMACRO_H */

0 commit comments

Comments
 (0)