fx5 / usbdmx

Linux/Mac/Windows-Driver for DMX-Interfaces from Digital Enlightenment and FX5
http://www.fx5.de/
BSD 3-Clause "New" or "Revised" License
17 stars 14 forks source link

Make fit for Visual Studio 2017 #12

Open hmb opened 6 years ago

hmb commented 6 years ago

Compiler macros and MSVC specific settings have been added to correctly compile under MSVC in VS 2017. The other pull requests should go together with this one, to compile without warnings.

fx5 commented 6 years ago

This breaks usbdmx_example:

$ make
g++ -L. -Wall -o usbdmx_example usbdmx_example.cpp -lusbdmx
usbdmx_example.cpp:9:23: error: expected initializer before ‘InterfaceChange’
 void USB_DMX_CALLBACK InterfaceChange(void) {
hmb commented 6 years ago

My bad, I missed the example program. Changed the macro there and re-introduced the USB_DMX_CALLBACK macro in order to not break other existing project. If it's OK by you it could be marked deprecated in future releases. It's just a naming clarification.