rpavlik/wiiuse — Issue #12: Not compatible with C99 - should be mentioned
Author: bsmulders
Created: 2011-12-29 23:34:01+00:00
State: open

I am using wiiuse as a library in a larger C project. In this project, I am using C99 by default (-std=c99 in gcc).

The strange behavior I had was the fact that I only got WIIUSE_NONE events from the wiiuse_poll method. I also noticed the following warning when compiling:
"lib/wiiuse/src/wiiuse.h:617: warning: declaration does not declare anything"

Not using the C99 standard (removing -std=c99 from makefile) from the files that use the wiiuse library fixed my problem. Is it possible to note this in the README file? It took me hours of debugging. Or is this something that's too obvious to mention?