Remove cmake dependency checks in usbextreme.h

Signed-off-by: Ernesto Castellotti <erny.castell@gmail.com>
This commit is contained in:
Ernesto Castellotti 2019-08-26 01:19:17 +02:00
parent 91ef9e42bb
commit bf7c15b3af
1 changed files with 4 additions and 12 deletions

View File

@ -2,21 +2,13 @@
#define USBEXTREME_H
#ifndef u8
#if HAVE_STDINT
#include <stdint.h>
typedef uint8_t u8;
typedef uint16_t u16;
#else
#error "u8 and u16 types have not been defined and missing stdint.h, please define your implementation of u8 and u16"
#endif
#include <stdint.h>
typedef uint8_t u8;
typedef uint16_t u16;
#endif
#ifndef size_t
#if HAVE_STDDEF
#include <stddef.h>
#else
#error "size_t type has not been defined and missing stddef.h, please define your implementation of size_t"
#endif
#include <stddef.h>
#endif
#define USBEXTREME_NAME_LENGTH 32