You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The header file rfb/rfbproto.h #undefs and #defines TRUE to -1 and is part of the public API for the project (deployed to /usr/include) for client applications to use. This header is included when rfb/rfbclient.h is included by an application using libvncclient.
This redefinition of TRUE is likely to silently clash with definitions of the same name provided by either another library or by user code. Especially because of the slightly non-conventional use of -1 for TRUE and how widely used a symbol named TRUE is.
In my case, it clashed with an internal header from the gstreamer project which defines TRUE as 1. Gstreamer validates some inputs against that value.
The text was updated successfully, but these errors were encountered:
The header file rfb/rfbproto.h #undefs and #defines TRUE to -1 and is part of the public API for the project (deployed to /usr/include) for client applications to use. This header is included when rfb/rfbclient.h is included by an application using libvncclient.
This redefinition of TRUE is likely to silently clash with definitions of the same name provided by either another library or by user code. Especially because of the slightly non-conventional use of -1 for TRUE and how widely used a symbol named TRUE is.
In my case, it clashed with an internal header from the gstreamer project which defines TRUE as 1. Gstreamer validates some inputs against that value.
The text was updated successfully, but these errors were encountered: