swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Raw File
Tip revision: 04a8a456cd8942cc3b074f142d355dee0319f213 authored by Unknown Author on 06 May 2002, 16:15:09 UTC
This commit was manufactured by cvs2svn to create tag 'v3-03-04'.
Tip revision: 04a8a45
getpagesize.c
/* @(#)root/clib:$Name:  $:$Id: getpagesize.c,v 1.1.1.1 2000/05/16 17:00:43 rdm Exp $ */
/* Author: */
#ifdef WIN32
#include <windows.h>
#include "mmalloc.h"

int getpagesize()
{
  SYSTEM_INFO siSysInfo;   /* struct for hardware information */
  /* Copy the hardware information to the SYSTEM_INFO structure. */

  GetSystemInfo(&siSysInfo);
  return  siSysInfo.dwPageSize;
}

#else

#ifndef __GNUC__
/* Prevent "empty translation unit" warnings. */
#include <stdio.h>
#endif

#endif
back to top