aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlinden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h b/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h
index 0ea096a..bb90aa1 100755
--- a/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h
+++ b/linden/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h
@@ -38,31 +38,23 @@
38 38
39#include <cstdio> 39#include <cstdio>
40 40
41extern "C" {
42#include <sys/types.h>
43//#include <unistd.h> //fiuxme
44}
45
46#define MSGMODULEFOO "(media plugin)"
47
48#ifdef LL_LINUX
49///////////////////////////////////////////////////////////////////////// 41/////////////////////////////////////////////////////////////////////////
50// Debug/Info/Warning macros. 42// Debug/Info/Warning macros.
51 43#if LL_WINDOWS
52#define STDERRMSG(...) do{\ 44#include <process.h>
53 fprintf(stderr, " pid:%d: ", (int)getpid());\ 45#define LL_GETPID GetCurrentProcessId
54 fprintf(stderr, MSGMODULEFOO " %s:%d: ", __FUNCTION__, __LINE__);\
55 fprintf(stderr, __VA_ARGS__);\
56 fputc('\n',stderr);\
57 }while(0)
58#else 46#else
47#include <sys/types.h>
48#include <unistd.h>
49#define LL_GETPID getpid
50#endif
51#define MSGMODULEFOO "(media plugin)"
59#define STDERRMSG(...) do{\ 52#define STDERRMSG(...) do{\
53 fprintf(stderr, " pid:%d: ", (int)LL_GETPID());\
60 fprintf(stderr, MSGMODULEFOO " %s:%d: ", __FUNCTION__, __LINE__);\ 54 fprintf(stderr, MSGMODULEFOO " %s:%d: ", __FUNCTION__, __LINE__);\
61 fprintf(stderr, __VA_ARGS__);\ 55 fprintf(stderr, __VA_ARGS__);\
62 fputc('\n',stderr);\ 56 fputc('\n',stderr);\
63 }while(0) 57 }while(0)
64#endif
65
66#define NULLMSG(...) do{}while(0) 58#define NULLMSG(...) do{}while(0)
67 59
68#define DEBUGMSG NULLMSG 60#define DEBUGMSG NULLMSG