The SNIPPETS Portable C/C++ Source Code Collection
Tuesday, 09-Feb-2010, 05:36:04 GMT

Archivist: Bob Stout



(Last updated: 16-Sep-2003, 06:24:08 GMT)

mk_fp.h

/*
**  MK_FP.H
**
**  Standard header file making sure this pesky Intel macro is defined!
*/

#ifndef MK_FP__H
#define MK_FP__H

#include "extkword.h"

#if defined(__WATCOMC__)
 #include <i86.h>
#elif !defined(__PACIFIC__)
 #include <dos.h>
#endif

#if !defined(MK_FP)
    #define MK_FP(seg,off) \
      ((void FAR *)(((unsigned long)(seg) << 16)|(unsigned)(off)))
#endif

#endif /* MK_FP__H */


mk_fp.h



©2001-2007 by Bob Stout, all rights reserved
All source code free as noted.
Tested with: Get Firefox Get MSIE . .

Support: Rapid PHP