root/main/win95nt.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2   +----------------------------------------------------------------------+
   3   | PHP Version 7                                                        |
   4   +----------------------------------------------------------------------+
   5   | Copyright (c) 1997-2016 The PHP Group                                |
   6   +----------------------------------------------------------------------+
   7   | This source file is subject to version 3.01 of the PHP license,      |
   8   | that is bundled with this package in the file LICENSE, and is        |
   9   | available through the world-wide-web at the following url:           |
  10   | http://www.php.net/license/3_01.txt                                  |
  11   | If you did not receive a copy of the PHP license and are unable to   |
  12   | obtain it through the world-wide-web, please send a note to          |
  13   | license@php.net so we can mail you a copy immediately.               |
  14   +----------------------------------------------------------------------+
  15   | Author:                                                              |
  16   +----------------------------------------------------------------------+
  17 */
  18 
  19 /* $Id$ */
  20 
  21 /* Defines and types for Windows 95/NT */
  22 #define HAVE_DECLARED_TIMEZONE
  23 #define WIN32_LEAN_AND_MEAN
  24 #include <io.h>
  25 #include <malloc.h>
  26 #include <direct.h>
  27 #include <stdlib.h>
  28 #include <stdio.h>
  29 #include <stdarg.h>
  30 #include <sys/types.h>
  31 #include <process.h>
  32 
  33 typedef int uid_t;
  34 typedef int gid_t;
  35 typedef char * caddr_t;
  36 #define lstat(x, y) php_sys_lstat(x, y)
  37 #define         _IFIFO  0010000 /* fifo */
  38 #define         _IFBLK  0060000 /* block special */
  39 #define         _IFLNK  0120000 /* symbolic link */
  40 #define S_IFIFO         _IFIFO
  41 #define S_IFBLK         _IFBLK
  42 #ifndef S_IFLNK
  43 # define        S_IFLNK         _IFLNK
  44 #endif
  45 #define chdir(path) _chdir(path)
  46 #define mkdir(a, b)     _mkdir(a)
  47 #define rmdir(a)        _rmdir(a)
  48 #define getpid          _getpid
  49 #define php_sleep(t)    SleepEx(t*1000, TRUE)
  50 #ifndef getcwd
  51 # define getcwd(a, b)           _getcwd(a, b)
  52 #endif
  53 #define off_t           _off_t
  54 typedef unsigned int uint;
  55 typedef unsigned long ulong;
  56 #if !NSAPI
  57 typedef int pid_t;
  58 #endif
  59 
  60 /* missing in vc5 math.h */
  61 #define M_PI             3.14159265358979323846
  62 #define M_TWOPI         (M_PI * 2.0)
  63 #define M_PI_2           1.57079632679489661923
  64 #ifndef M_PI_4
  65 #define M_PI_4           0.78539816339744830962
  66 #endif
  67 
  68 #if !defined(PHP_DEBUG)
  69 #ifdef inline
  70 #undef inline
  71 #endif
  72 #define inline  __inline
  73 #endif
  74 
  75 /* General Windows stuff */
  76 #ifndef WINDOWS
  77 # define WINDOWS 1
  78 #endif
  79 
  80 
  81 /* Prevent use of VC5 OpenFile function */
  82 #define NOOPENFILE
  83 
  84 /* sendmail is built-in */
  85 #ifdef PHP_PROG_SENDMAIL
  86 #undef PHP_PROG_SENDMAIL
  87 #define PHP_PROG_SENDMAIL "Built in mailer"
  88 #endif

/* [<][>][^][v][top][bottom][index][help] */