Ticket #58 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

[PATCH] Do not add a path before libusb.h

Reported by: ludovicrousseau Owned by: Ludovic Rousseau <rousseau@…>
Milestone: Component: libusb-1.0
Keywords: Cc:
Blocked By: Blocks:

Description

Hello,

Here is a patch for the problem I described in http://libusb.6.n5.nabble.com/How-is-libusb-h-supposed-to-be-used-td2636881.html

Examples should use:

#include <libusb.h>

instead of:

#include <libusb/libusb.h>

Attachments

0001-Do-not-add-a-path-before-libusb.h.patch (1.7 KB) - added by ludovicrousseau 3 years ago.

Download all attachments as: .zip

Change History

Changed 3 years ago by ludovicrousseau

comment:1 Changed 3 years ago by segher

Since the examples build against the current source, not the
installed library, they should arguably use "libusb.h" instead.

comment:2 Changed 2 years ago by Ludovic Rousseau <rousseau@…>

  • Owner set to Ludovic Rousseau <rousseau@…>
  • Resolution set to fixed
  • Status changed from new to closed

In [2aa8984e59cf0f492e7fbebb8924f54f6160cc5e/libusb]:

examples: #include <libusb.h> without directory name

The libusb-1.0 directory name belongs in the compile command, e.g.
via pkg-config --cflags. Fixes #58.

Note: See TracTickets for help on using tickets.