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