swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Raw File
Tip revision: 61a29734b74db7d5677d2f57ca30be9c81ffa6f4 authored by Unknown Author on 06 February 2002, 11:51:11 UTC
This commit was manufactured by cvs2svn to create tag 'v3-02-01'.
Tip revision: 61a2973
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