win vs: more compile fix

This commit is contained in:
Flyinghead 2018-09-17 14:48:43 +02:00
parent ae829405b5
commit 843c912d86
2 changed files with 8 additions and 1 deletions

View File

@ -31,6 +31,14 @@
# define PEDANTIC_STRUCT_DEF struct
# define PACKED_UNION_DEF _Packed union
# define WEAK
#elif defined _MSC_VER
# define PACKED_STRUCT_DEF struct
# define PEDANTIC_STRUCT_DEF struct
# define PACKED_UNION_DEF union
# define PACKED
# define WEAK
// quick'n'dirty
#pragma pack(push,1)
#else
# define PACKED_STRUCT_DEF struct __attribute__((packed))
# define PEDANTIC_STRUCT_DEF struct

View File

@ -26,7 +26,6 @@
#include "pico_dev_tap_windows_private.h"
#define DEBUG_TAP_INFO
#define DEBUG_TAP_GENERAL
/*
* Debugging info