[X2Go-Commits] [x2goclient] 269/280: src/: create new file unix_stdint.h which imports the (u)int*_t types into the std namespace.
git-admin at x2go.org
git-admin at x2go.org
Wed Jan 18 12:26:21 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch bugfix/osx
in repository x2goclient.
commit a13b92ccdd456355b2ed10011a0dfbcf9b3ae4fb
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sat Dec 10 14:38:02 2016 +0100
src/: create new file unix_stdint.h which imports the (u)int*_t types into the std namespace.
---
debian/changelog | 2 ++
src/unix_stdint.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index b5a7ff6..b4d3176 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -517,6 +517,8 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
remove duplicates, not remove most of the list of elements to add...
- src/unixhelper.cpp: use cstdio instead of stdio.h. It's the C++ header
and imports functions into the std namespace.
+ - src/: create new file unix_stdint.h which imports the (u)int*_t types
+ into the std namespace.
[ Bernard Cafarelli ]
* New upstream version (4.0.5.3):
diff --git a/src/unix_stdint.h b/src/unix_stdint.h
new file mode 100644
index 0000000..633ecec
--- /dev/null
+++ b/src/unix_stdint.h
@@ -0,0 +1,46 @@
+/***************************************************************************
+ * Copyright (C) 2016 by Mihai Moldovan <ionic at ionic.de> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#ifndef UNIX_STDINT_H
+#define UNIX_STDINT_H
+
+#ifdef Q_OS_UNIX
+
+#include <stdint.h>
+
+/*
+ * We need this ugly hack because the cstdint header is C++11-only
+ * (or available with extensions we can't portably use)
+ * and stdint.h won't put these types into the std namespace.
+ */
+namespace std {
+ using ::int8_t;
+ using ::int16_t;
+ using ::int32_t;
+ using ::int64_t;
+ using ::uint8_t;
+ using ::uint16_t;
+ using ::uint32_t;
+ using ::uint64_t;
+}
+
+#endif /* defined (Q_OS_UNIX) */
+
+
+#endif /* !defined (UNIX_STDINT_H) */
--
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