Archive-Unzip-Burst
view release on metacpan or search on metacpan
unzip-6.0/macos/source/maccfg.h view on Meta::CPAN
/*
Copyright (c) 1990-2000 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2000-Apr-09 or later
(the contents of which are also included in unzip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
*/
/*---------------------------------------------------------------------------
MACOS specific configuration and declarations:
---------------------------------------------------------------------------*/
#ifndef __maccfg_h
#define __maccfg_h
/*****************************************************************************/
/* Macros, missing RTL declarations, compatibility typedefs */
/*****************************************************************************/
#if defined(__MWERKS__) && defined(macintosh)
# include <OSUtils.h>
typedef unsigned long mode_t;
# define _STAT
# if (defined(MacStaticLib) || defined(USE_SIOUX))
# define MAIN UZ_EXP UzpMain /* was UzpUnzip */
# else
# define MAIN _dummy_main
# endif
#endif
#ifdef THINK_C
# ifndef __STDC__ /* if Think C hasn't defined __STDC__ ... */
# define __STDC__ 1 /* make sure it's defined: it needs it */
# else
# if !__STDC__ /* sometimes __STDC__ is defined as 0; */
# undef __STDC__ /* it needs to be 1 or required header */
# define __STDC__ 1 /* files are not properly included. */
# endif /* !__STDC__ */
# endif
# define IOCompletionUPP ProcPtr
# define CREATOR 'KAHL'
# define MAIN _dummy_main
#endif /* THINK_C */
#ifdef MPW
# include <Errors.h>
# include <Files.h>
# include <Memory.h>
# include <Quickdraw.h>
# include <ToolUtils.h>
# ifndef QUERY_TRNEWLN
# define QUERY_TRNEWLN
# endif
# ifdef fileno
# undef fileno
# endif
# ifdef MCH_MACINTOSH
# define CREATOR 'Manx'
# else
# define CREATOR 'MPS '
# endif
#endif /* MPW */
#include <fcntl.h> /* O_BINARY for open() w/o CR/LF translation */
#define fileno(x) ((x) == stdout ? 1 : ((x) == stderr ? 2 : (short)(x)))
#define open macopen
#define close macclose
#define fclose(x) macclose(fileno((x)))
#define read macread
#define write macwrite
#define lseek maclseek
#define creat(x,y) maccreat((x))
#define stat UZmacstat
#define lstat UZmacstat
( run in 0.461 second using v1.01-cache-2.11-cpan-97f6503c9c8 )