Logo ROOT  
Reference Guide
getpagesize.c
Go to the documentation of this file.
1/* @(#)root/clib:$Id$ */
2/* Author: */
3#ifdef WIN32
4#include <windows.h>
5#include "mmalloc.h"
6
7int getpagesize()
8{
9 SYSTEM_INFO siSysInfo; /* struct for hardware information */
10 /* Copy the hardware information to the SYSTEM_INFO structure. */
11
12 GetSystemInfo(&siSysInfo);
13 return siSysInfo.dwPageSize;
14}
15
16#else
17
18#ifndef __GNUC__
19/* Prevent "empty translation unit" warnings. */
20#include <stdio.h>
21#endif
22
23#endif