This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch bugfix/osx in repository x2goclient. from c44edf0 src/x2goutils.cpp: fix add_to_path (). new 71aa7d5 src/unixhelper.cpp: use cstdio instead of stdio.h. new 2f9ea30 src/: create new file unix_stdint.h which imports the (u)int*_t types into the std namespace. new 7d2b3e2 src/pulsemanager.h: use unix_stdint.h on non-Windows-platforms to get std::(u)int*_t types without having to use C++11. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 6 ++++++ src/pulsemanager.h | 2 +- src/{compat.h => unix_stdint.h} | 37 ++++++++++++++++++++++--------------- src/unixhelper.cpp | 2 +- 4 files changed, 30 insertions(+), 17 deletions(-) copy src/{compat.h => unix_stdint.h} (69%) -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/osx in repository x2goclient. commit 71aa7d529d39db0ef5f31ce2d5725b109f0756cb Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Dec 10 14:36:07 2016 +0100 src/unixhelper.cpp: use cstdio instead of stdio.h. It's the C++ header and imports functions into the std namespace. --- debian/changelog | 2 ++ src/unixhelper.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3e76677..3e3301a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -493,6 +493,8 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium encountered. Also, better don't compare a value from the original path value to itself, but rather to the things we want to add in order to 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. [ Bernard Cafarelli ] * New upstream version (4.0.5.3): diff --git a/src/unixhelper.cpp b/src/unixhelper.cpp index 406cdda..98597c1 100644 --- a/src/unixhelper.cpp +++ b/src/unixhelper.cpp @@ -30,7 +30,7 @@ #include <cerrno> #include <vector> #include <cstdlib> -#include <stdio.h> +#include <cstdio> /* For documentation please see unixhelper.h. */ -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/osx in repository x2goclient. commit 2f9ea3066ed1b74afd420d1aba47db3f2af9b988 Author: Mihai Moldovan <ionic@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 3e3301a..2c0abb9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -495,6 +495,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@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
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch bugfix/osx in repository x2goclient. commit 7d2b3e24c507796231de1e51b67dedda8332ac49 Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Dec 10 14:40:08 2016 +0100 src/pulsemanager.h: use unix_stdint.h on non-Windows-platforms to get std::(u)int*_t types without having to use C++11. --- debian/changelog | 2 ++ src/pulsemanager.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 2c0abb9..8a7d987 100644 --- a/debian/changelog +++ b/debian/changelog @@ -497,6 +497,8 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium 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. + - src/pulsemanager.h: use unix_stdint.h on non-Windows-platforms to get + std::(u)int*_t types without having to use C++11. [ Bernard Cafarelli ] * New upstream version (4.0.5.3): diff --git a/src/pulsemanager.h b/src/pulsemanager.h index 0b1ae3c..0aa5c6a 100644 --- a/src/pulsemanager.h +++ b/src/pulsemanager.h @@ -34,7 +34,7 @@ #ifdef Q_OS_WIN #include "windows_stdint.h" #else /* defined (Q_OS_WIN) */ -#include <cstdint> +#include "unix_stdint.h" #endif /* defined (Q_OS_WIN) */ #include "x2gosettings.h" -- Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git