windows: include <Windows.h> first

This commit is contained in:
Marcel Wappler 2024-06-10 11:06:01 +02:00 committed by Matthias Ringwald
parent d282ad889d
commit b795dcd07c
8 changed files with 16 additions and 14 deletions

View File

@ -41,14 +41,13 @@
* btstack_run_loop_windows.c
*/
#include <Windows.h>
#include "btstack_run_loop.h"
#include "btstack_run_loop_windows.h"
#include "btstack_linked_list.h"
#include "btstack_debug.h"
#include "btstack_util.h"
#include <Windows.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -37,6 +37,7 @@
#define BTSTACK_FILE__ "btstack_stdin_windows.c"
#include <Windows.h>
#include <errno.h>
#include <stdio.h>
@ -51,7 +52,6 @@
// __WIN32 Defined as 1 when the compilation target is 32-bit ARM, 64-bit ARM, x86, or x64.
// Otherwise, undefined.
#include <Windows.h>
#include <conio.h> //provides non standard getch() function
#include <signal.h>

View File

@ -43,7 +43,7 @@
* Common code to access serial port via asynchronous block read/write commands
*
*/
#include <Windows.h>
#include "btstack_uart_block.h"
#include "btstack_run_loop.h"
#include "btstack_debug.h"
@ -52,7 +52,7 @@
#include <string.h>
#include <errno.h>
#include <Windows.h>
// uart config
static const btstack_uart_config_t * uart_config;

View File

@ -47,7 +47,7 @@
* - stdout hexdump
*
*/
#include <windows.h>
#include "btstack_config.h"
#include "hci_dump_windows_fs.h"
@ -57,7 +57,6 @@
#include "hci_cmd.h"
#include <stdio.h>
#include <windows.h>
#include <share.h>
/**

View File

@ -37,6 +37,8 @@
#define BTSTACK_FILE__ "hci_dump_windows_stdout.c"
#include <Windows.h>
/*
* Dump HCI trace on stdout
*/
@ -46,7 +48,7 @@
#include "hci.h"
#include "hci_cmd.h"
#include <stdio.h>
#include <Windows.h>
#include "hci_dump_windows_stdout.h"

View File

@ -53,6 +53,8 @@
// SCO Data 0 0 0x83 Isochronous (IN)
// SCO Data 0 0 0x03 Isochronous (Out)
#include <Windows.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
@ -65,7 +67,6 @@
#include "hci_transport.h"
#include "hci_transport_usb.h"
#include <Windows.h>
#include <SetupAPI.h>
#include <Winusb.h>

View File

@ -42,7 +42,7 @@
// minimal setup for HCI code
//
// *****************************************************************************
#include <Windows.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -41,6 +41,11 @@
* General utility functions
*/
#ifdef _MSC_VER
#include <Windows.h>
#include <intrin.h>
#endif
#include "btstack_config.h"
#include "btstack_debug.h"
#include "btstack_util.h"
@ -48,10 +53,6 @@
#include <stdio.h> // vsnprintf
#include <string.h> // memcpy
#ifdef _MSC_VER
#include <intrin.h>
#include <windows.h>
#endif
/**