home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Panoráma
/
computer_panorama_1997-12-hibas.iso
/
SHARE
/
GRAPH
/
PTC051.ZIP
/
SRC
/
NEAR.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-06-09
|
653b
|
60 lines
//////////////////////////
// near memory routines //
//////////////////////////
#ifndef __NEAR_H
#define __NEAR_H
#include "misc.h"
// prototypes
inline void* AdjustNearPointer(void *pointer);
#if defined(__DJGPP__)
// djgpp implementation
#include <sys/nearptr.h>
#include <crt0.h>
extern int _crt0_startup_flags;
inline void* AdjustNearPointer(void *pointer)
{
return (void*)((uint)pointer+__djgpp_conventional_base);
}
#else
// skeletal implementation
inline void* AdjustNearPointer(void *pointer)
{
// no change
return pointer;
}
#endif
#endif