Просмотр исходного кода

cmake: Replace sys/types.h usage with stdint.h with CheckUSBHID

Brad Smith 1 месяц назад
Родитель
Сommit
d4d66e77cc
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      cmake/sdlchecks.cmake

+ 3 - 3
cmake/sdlchecks.cmake

@@ -1141,7 +1141,7 @@ macro(CheckUSBHID)
   string(APPEND CMAKE_REQUIRED_FLAGS " ${USB_CFLAGS}")
   string(APPEND CMAKE_REQUIRED_FLAGS " ${USB_CFLAGS}")
   list(APPEND CMAKE_REQUIRED_LIBRARIES ${USB_LIBS})
   list(APPEND CMAKE_REQUIRED_LIBRARIES ${USB_LIBS})
   check_c_source_compiles("
   check_c_source_compiles("
-       #include <sys/types.h>
+        #include <stdint.h>
         #if defined(HAVE_USB_H)
         #if defined(HAVE_USB_H)
         #include <usb.h>
         #include <usb.h>
         #endif
         #endif
@@ -1167,7 +1167,7 @@ macro(CheckUSBHID)
         }" HAVE_USBHID)
         }" HAVE_USBHID)
   if(HAVE_USBHID)
   if(HAVE_USBHID)
     check_c_source_compiles("
     check_c_source_compiles("
-          #include <sys/types.h>
+          #include <stdint.h>
           #if defined(HAVE_USB_H)
           #if defined(HAVE_USB_H)
           #include <usb.h>
           #include <usb.h>
           #endif
           #endif
@@ -1195,7 +1195,7 @@ macro(CheckUSBHID)
     endif()
     endif()
 
 
     check_c_source_compiles("
     check_c_source_compiles("
-          #include <sys/types.h>
+          #include <stdint.h>
           #if defined(HAVE_USB_H)
           #if defined(HAVE_USB_H)
           #include <usb.h>
           #include <usb.h>
           #endif
           #endif