Compare commits

...

2 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult e72d7d37e8 present: need to include <X11/Xfuncproto.h>
Some headers making use of X_EXPORT macro, so Xfuncproto.h should be
included explicitly, instead of silently relying any other include
already doing that.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-02-19 16:05:27 +01:00
Enrico Weigelt, metux IT consult 19137900c1 present: need to include dix-config.h
dix-config.h always needs to be included first, otherwise things
can get messed up in really obscure ways, eg. certain types silently
changing in size and causing mysterious crashes.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-02-19 16:04:28 +01:00
10 changed files with 13 additions and 2 deletions

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "present_priv.h"
#include <gcstruct.h>

View File

@ -23,7 +23,9 @@
#ifndef _PRESENT_H_
#define _PRESENT_H_
#include <X11/Xfuncproto.h>
#include <X11/extensions/presentproto.h>
#include "randrstr.h"
#include "presentext.h"

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "present_priv.h"

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "present_priv.h"
#include <unistd.h>

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "present_priv.h"
#include "list.h"

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "present_priv.h"
#include <gcstruct.h>

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "present_priv.h"
#include <misync.h>

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "present_priv.h"

View File

@ -19,6 +19,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#include <dix-config.h>
#include "present_priv.h"
#include <unistd.h>

View File

@ -23,7 +23,8 @@
#ifndef _PRESENTEXT_H_
#define _PRESENTEXT_H_
extern _X_EXPORT void
present_extension_init(void);
#include <X11/Xfuncproto.h>
_X_EXPORT void present_extension_init(void);
#endif /* _PRESENTEXT_H_ */