[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kolor-manager] kolor-server: fix header includes for uint32_t and friends
From:       Kai-Uwe Behrmann <ku.b () gmx ! de>
Date:       2014-11-11 10:49:56
Message-ID: E1Xo91I-0005mD-GE () scm ! kde ! org
[Download RAW message or body]

Git commit 43bb8658ff74e5a1e089fbce7f4fa5c9cb4653bd by Kai-Uwe Behrmann.
Committed on 28/09/2014 at 20:39.
Pushed by behrmann into branch 'master'.

fix header includes for uint32_t and friends

X headers do not necessarily include stdint.h

M  +3    -8    kolor-server/x11-helpers.h

http://commits.kde.org/kolor-manager/43bb8658ff74e5a1e089fbce7f4fa5c9cb4653=
bd

diff --git a/kolor-server/x11-helpers.h b/kolor-server/x11-helpers.h
index 476cec0..1036ba9 100644
--- a/kolor-server/x11-helpers.h
+++ b/kolor-server/x11-helpers.h
@@ -29,6 +29,9 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH=
 DAMAGE.
 #ifndef X11_HELPERS_H_
 #define X11_HELPERS_H_
 =

+#include <stdint.h> /* uint32_t */
+#include <arpa/inet.h> /* ntohl() */
+
 namespace X11 {
 #include <X11/Xlib.h>
 #include <X11/Xatom.h>
@@ -44,14 +47,6 @@ namespace X11 {
 =

 using X11::Atom;
 using X11::XcolorProfile;
-using X11::intmax_t;
-using X11::uint8_t;
-using X11::uint16_t;
-using X11::uint32_t;
-using X11::uintmax_t;
-
-using X11::ntohl;
-using X11::htonl;
 =

 =

 /*

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic