From: <ibr...@us...> - 2013-10-15 05:09:19
|
Revision: 4867 http://sourceforge.net/p/tora/code/4867 Author: ibre5041 Date: 2013-10-15 05:09:15 +0000 (Tue, 15 Oct 2013) Log Message: ----------- clang fix Modified Paths: -------------- trunk/tora/src/ts_log/ts_log_utils.h Modified: trunk/tora/src/ts_log/ts_log_utils.h =================================================================== --- trunk/tora/src/ts_log/ts_log_utils.h 2013-10-14 15:09:20 UTC (rev 4866) +++ trunk/tora/src/ts_log/ts_log_utils.h 2013-10-15 05:09:15 UTC (rev 4867) @@ -36,6 +36,10 @@ #if _MSC_VER # define FILE_LINE_LINK __FILE__ "(" STRINGISE(__LINE__) ") : " # define WARN(exp) (FILE_LINE_LINK "WARNING: " exp) +#elif __clang__ +//# define DEFER(M,...) M(__VA_ARGS__) +//# define WARN(exp) _Pragma(STRINGISE_IMPL(GCC warning(exp " at line " DEFER(STRINGISE_IMPL,__LINE__)))) +# define WARN(exp) ("WARNING: " exp) #else//__GNUC__ - may need other defines for different compilers # define WARN(exp) ("WARNING: " exp) #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |