X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f3ae712a1b95294052b6e8136d0f0f2d4b30e6eb..e6b5e106ef53a55ba7a1d7228f19456c9b249df9:/include/xbt/misc.h diff --git a/include/xbt/misc.h b/include/xbt/misc.h index 3be8fc11f4..9bd9b24380 100644 --- a/include/xbt/misc.h +++ b/include/xbt/misc.h @@ -202,6 +202,12 @@ #endif +#ifdef _XBT_WIN32 +#define XBT_INTERNAL +#else +#define XBT_INTERNAL __attribute__((visibility ("hidden"))) +#endif + #if !defined (max) && !defined(__cplusplus) # define max(a,b) (((a) > (b)) ? (a) : (b)) #endif @@ -235,6 +241,9 @@ SG_BEGIN_DECL() /** Cache the size of a memory page for the current system. */ XBT_PUBLIC_DATA(int) xbt_pagesize; +/** Cache the number of bits of addresses inside a given page, log2(xbt_pagesize). */ +XBT_PUBLIC_DATA(int) xbt_pagebits; + XBT_PUBLIC(const char *) xbt_procname(void); #define XBT_BACKTRACE_SIZE 10 /* FIXME: better place? Do document */