summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich J Wareham <richwareham@users.sourceforge.net>2002-04-27 14:35:39 +0000
committerRich J Wareham <richwareham@users.sourceforge.net>2002-04-27 14:35:39 +0000
commit024bd68f8cf10c4fa99607207d3c64eb900006b0 (patch)
tree330de46e5ceb8871b91fdd947ffdd04660a2e2ef
parent391bdc4d345ccc58ee98b692c789e4b36ca4e247 (diff)
downloadxine-lib-024bd68f8cf10c4fa99607207d3c64eb900006b0.tar.gz
xine-lib-024bd68f8cf10c4fa99607207d3c64eb900006b0.tar.bz2
Two small changes to stop C++ moaning
CVS patchset: 1781 CVS date: 2002/04/27 14:35:39
-rw-r--r--src/xine-utils/xineutils.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h
index d1bc913fb..9a751ec5a 100644
--- a/src/xine-utils/xineutils.h
+++ b/src/xine-utils/xineutils.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xineutils.h,v 1.12 2002/03/24 14:15:37 guenter Exp $
+ * $Id: xineutils.h,v 1.13 2002/04/27 14:35:39 richwareham Exp $
*
*/
#ifndef XINEUTILS_H
@@ -565,7 +565,7 @@ void xine_probe_fast_memcpy(config_values_t *config);
/* Debugging/Monitoring */
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) || !defined(__GNUC__)
+#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) || !defined(__GNUC__)) && !defined(__cplusplus)
#define xlerror(...) do { \
printf("XINE lib %s:%d:(%s) ", __FILE__, __LINE__, __XINE_FUNCTION__); \
printf(__VA_ARGS__); \
@@ -713,7 +713,9 @@ static inline char *_x_strsep(char **stringp, const char *delim) {
static inline void _x_setenv(const char *name, const char *val, int _xx)
{
int len = strlen(name) + strlen(val) + 2;
- char *env = malloc(len);
+ char *env;
+
+ env = (char*)malloc(len);
if (env != NULL) {
strcpy(env, name);