[X2Go-Commits] [x2goclient] 274/276: src/unix_stdint.h: use same hack to import ssize_t into std namespace.

git-admin at x2go.org git-admin at x2go.org
Sat Dec 31 01:35:44 CET 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch bugfix/osx
in repository x2goclient.

commit 3a48203398d56f950181920692297bc53a747627
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Dec 10 15:11:36 2016 +0100

    src/unix_stdint.h: use same hack to import ssize_t into std namespace.
---
 debian/changelog  |    1 +
 src/unix_stdint.h |    5 +++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 55786ac..628bf12 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -507,6 +507,7 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
       could be -1 and std::size_t is not applicable.
     - src/pulsemanager.cpp: cast the return value of realloc () to char*, as
       GCC doesn't seem to like reassigning the pointer otherwise.
+    - src/unix_stdint.h: use same hack to import ssize_t into std namespace.
 
   [ Bernard Cafarelli ]
   * New upstream version (4.0.5.3):
diff --git a/src/unix_stdint.h b/src/unix_stdint.h
index 633ecec..db59edf 100644
--- a/src/unix_stdint.h
+++ b/src/unix_stdint.h
@@ -40,6 +40,11 @@ namespace std {
   using ::uint64_t;
 }
 
+/* Same issue with unistd's ssize_t type. */
+namespace std {
+  using ::ssize_t;
+}
+
 #endif /* defined (Q_OS_UNIX) */
 
 

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list