[X2Go-Commits] [x2goclient] 30/126: compat.{cpp, h}: remove inline keyword, because function is not defined in header file.
git-admin at x2go.org
git-admin at x2go.org
Wed Dec 2 23:19:15 CET 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch bugfix/osx
in repository x2goclient.
commit 6cf8edf3adaaa70432a4366c1101d3ccc51da7ce
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sat Mar 21 23:40:41 2015 +0100
compat.{cpp,h}: remove inline keyword, because function is not defined in header file.
---
debian/changelog | 2 ++
src/compat.cpp | 2 +-
src/compat.h | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b0dd069..1ad8174 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -68,6 +68,8 @@ x2goclient (4.0.5.1-0x2go1) UNRELEASED; urgency=low
file. Generalize some Windows-specific sections by using QDir and QFile.
- compat.{cpp,h}: new files. Implements strndup on OS X 10.6 and below.
Add to x2goclient.cpp, x2goclient.pro and x2goclient.pro.maemo.
+ - compat.{cpp,h}: remove inline keyword, because function is not defined
+ in header file.
[ Oleksandr Shneyder ]
* New upstream release (4.0.5.1):
diff --git a/src/compat.cpp b/src/compat.cpp
index 877d07b..c443489 100644
--- a/src/compat.cpp
+++ b/src/compat.cpp
@@ -29,7 +29,7 @@
#include <string.h>
#include <stdlib.h>
-inline char *strndup (const char *s, size_t n) {
+char *strndup (const char *s, size_t n) {
char *result;
size_t len = strlen (s);
diff --git a/src/compat.h b/src/compat.h
index 8b9d77e..36b71ef 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -31,7 +31,7 @@
#include <string.h>
#include <stdlib.h>
-inline char *strndup (const char *s, size_t n);
+char *strndup (const char *s, size_t n);
#endif /* MAC_OS_X_VERSION_MIN_REQUIRED */
#endif /* defined (Q_OS_DARWIN) */
--
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