1
0
mirror of https://invent.kde.org/network/krfb synced 2024-07-08 12:05:49 +00:00
krfb/krfb/rfb.h
Tomaz Canabrava 5195783757 Fix build by undefining the max macro
The max macro was being defined in the c++ namespace,
conflicting with the max C++ function call, breaking the
build.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
2016-08-19 12:43:24 -03:00

20 lines
300 B
C

/**
* This file should always be included instead of <rfb/rfb.h> because otherwise it's redefinition
* of TRUE and FALSE plays havoc with other things.
*/
#ifndef KRFB_RFB_H
#define KRFB_RFB_H
#include "rfb/rfb.h"
#ifdef max
#undef max
#endif
#undef TRUE
#undef FALSE
#endif // Header guard