Skip to content
Snippets Groups Projects

Fix builds with C23 compilers

Merged Alan Coopersmith requested to merge alanc/xf86-video-vbox:C23 into master
  1. Mar 12, 2024
    • Alan Coopersmith's avatar
      Fix builds with C23 compilers · b66441a2
      Alan Coopersmith authored
      
      Relies on C99 & later stdbool.h header to avoid making our own
      definitions of bool, true, & false that C23 already defines for us.
      
      ./VBoxVideoIPRT.h:35:5: error: expected identifier before ‘false’
         35 |     false = 0,
            |     ^~~~~
      ./VBoxVideoIPRT.h:37:3: error: expected ‘;’, identifier or ‘(’ before ‘bool’
         37 | } bool;
            |   ^~~~
      ./VBoxVideoIPRT.h:37:3: warning: useless type name in empty declaration
      
      Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      b66441a2
Loading