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