mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
protect against multiple inclusion (this is useful when you
start working with third party usb modules, where sometimes it is not easy to set the inclusion order so that there are no multiple inclusions, yet you want to compile with high WARNS levels). I am not sure if there is a standard for having a leading and/or trailing _ in the macro name, the usb code seems to use both. There are still several unprotected headers here so it might be useful to do the same thing on other files as well as the need arises. MFC After: 3 days
This commit is contained in:
parent
3f29b2ef51
commit
d64492c407
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165749
@ -38,6 +38,8 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef _USBI_UTIL_H_
|
||||
#define _USBI_UTIL_H_
|
||||
usbd_status usbd_get_desc(usbd_device_handle dev, int type,
|
||||
int index, int len, void *desc);
|
||||
usbd_status usbd_get_config_desc(usbd_device_handle, int,
|
||||
@ -93,3 +95,4 @@ const usb_descriptor_t *usb_find_desc(usbd_device_handle dev, int type,
|
||||
int subtype);
|
||||
#define USBD_SUBTYPE_ANY (~0)
|
||||
|
||||
#endif /* _USBI_UTIL_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user