diff --git a/fastboot/Android.mk b/fastboot/Android.mk index 6443a1fc5..ee9f5ab23 100644 --- a/fastboot/Android.mk +++ b/fastboot/Android.mk @@ -34,7 +34,7 @@ ifeq ($(HOST_OS),linux) endif ifeq ($(HOST_OS),darwin) - LOCAL_SRC_FILES += usb_osx.c util_osx.c + LOCAL_SRC_FILES += usb_osx.cpp util_osx.cpp LOCAL_LDLIBS += -lpthread -framework CoreFoundation -framework IOKit -framework Carbon LOCAL_CFLAGS += -Wno-unused-parameter endif diff --git a/fastboot/usb_osx.c b/fastboot/usb_osx.cpp similarity index 100% rename from fastboot/usb_osx.c rename to fastboot/usb_osx.cpp diff --git a/fastboot/util_osx.c b/fastboot/util_osx.cpp similarity index 98% rename from fastboot/util_osx.c rename to fastboot/util_osx.cpp index e71856273..ae0b02460 100644 --- a/fastboot/util_osx.c +++ b/fastboot/util_osx.cpp @@ -26,6 +26,8 @@ * SUCH DAMAGE. */ +#include "fastboot.h" + #import #include