Apply smack when '._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6' file is created
[platform/core/dotnet/launcher.git] / NativeLauncher / inc / log.h
index 20f7d2f..d15446a 100644 (file)
 #ifndef __LOG_H__
 #define __LOG_H__
 
-#ifndef NO_TIZEN
+#include <stdio.h>
 #include <dlog.h>
 #define LOGX(fmt, arg...) \
        ({ do { \
                dlog_print(DLOG_INFO, LOG_TAG, fmt, ##arg); \
        } while (0); })
 
-#else
-#include <stdio.h>
-#define LOGE(fmt, args...) printf(fmt, ##args)
-#define LOGD(fmt, args...) printf(fmt, ##args)
-#define LOGI(fmt, args...) printf(fmt, ##args)
-#define LOGX(fmt, args...) printf(fmt, ##args)
-#endif
-
 #ifdef  LOG_TAG
 #undef  LOG_TAG
 #endif
 #define _LOGX(fmt, args...) LOGX(fmt "\n", ##args)
 #endif
 
+#ifndef _SOUT
+#define _SOUT(fmt, args...) fprintf(stdout, fmt "\n", ##args)
+#endif
+
+#ifndef _SERR
+#define _SERR(fmt, args...) fprintf(stderr, fmt "\n", ##args)
+#endif
+
 #endif /* __LOG_H__ */