Fix adb/fastboot windows compilations.
Many of the windows files where not including stdlib.h even though they are using malloc/free calls. Change-Id: If6959df9909d9d9928e9f4a2a96018166361cf3c
This commit is contained in:
parent
ba2d22c4ad
commit
ae7bf0959b
5 changed files with 11 additions and 2 deletions
|
|
@ -15,9 +15,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
# endif
|
||||||
# include "windows.h"
|
# include "windows.h"
|
||||||
# include "shlobj.h"
|
# include "shlobj.h"
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#define TRACE_TAG TRACE_SYSDEPS
|
#define TRACE_TAG TRACE_SYSDEPS
|
||||||
#include "adb.h"
|
#include "adb.h"
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,12 @@
|
||||||
#include "usb_vendors.h"
|
#include "usb_vendors.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
# define WIN32_LEAN_AND_MEAN
|
||||||
|
# endif
|
||||||
# include "windows.h"
|
# include "windows.h"
|
||||||
# include "shlobj.h"
|
# include "shlobj.h"
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
#include <usb100.h>
|
#include <usb100.h>
|
||||||
#include <adb_api.h>
|
#include <adb_api.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "sysdeps.h"
|
#include "sysdeps.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@
|
||||||
#include <usb100.h>
|
#include <usb100.h>
|
||||||
#include <adb_api.h>
|
#include <adb_api.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "usb.h"
|
#include "usb.h"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue