X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/055f70fa5c9473b92721b4872fdcdb17857bb2b1..a8c07a9421aa8cad9f88c2d04dbba1383efec724:/src/xbt/log.c diff --git a/src/xbt/log.c b/src/xbt/log.c index 3073e99ab0..7853627699 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -24,6 +24,13 @@ #include "xbt/sysdep.h" #include "xbt/xbt_os_thread.h" +#ifndef MIN +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif +#ifndef MAX +#define MAX(a, b) ((a) > (b) ? (a) : (b)) +#endif + int xbt_log_no_loc = 0; /* if set to true (with --log=no_loc), file localization will be omitted (for tesh tests) */ static xbt_os_mutex_t log_cat_init_mutex = NULL; @@ -662,7 +669,7 @@ static void xbt_log_help(void) "in 'l'etter)\n" " -> %%L: line number where the log event was raised (LOG4J compatible)\n" " -> %%M: function name (LOG4J compatible -- called method name here of course).\n" - " Defined only when using gcc because there is no __FUNCTION__ elsewhere.\n" + " Defined only when using gcc because there is no __func__ elsewhere.\n" "\n" " -> %%b: full backtrace (Called %%throwable in LOG4J). Defined only under windows or when using the " "GNU libc because\n"