Skip to content

Commit

Permalink
Invert preprocessor condition, as the Microsoft compiler seems to be …
Browse files Browse the repository at this point in the history
…the special case - not the other way around
  • Loading branch information
JoergAtGithub committed Oct 26, 2023
1 parent 3c04eac commit bce1260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/hidapi_descriptor_reconstruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ typedef struct hidp_preparsed_data_ {
USHORT FirstByteOfLinkCollectionArray;
USHORT NumberLinkCollectionNodes;

#if defined(__MINGW32__) || defined(__CYGWIN__)
#ifndef _MSC_VER
// MINGW fails with: Flexible array member in union not supported
// Solution: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
union {
Expand Down

0 comments on commit bce1260

Please sign in to comment.