mirror of
https://github.com/fadden/ciderpress.git
synced 2024-12-22 05:29:43 +00:00
8e910b23ca
Many updates to format strings, largely as a result of changing various "long" variables to uint32_t. Fixed the diskimg debug macros for gcc, which requires an extra "##" to remove the "," when there are no arguments. (Apparently Visual Studio just strips this away for you.) Stripped out a couple of dead variables spotted by gcc. Return the actual error in a couple of HFS file functions.
76 lines
1.7 KiB
C
76 lines
1.7 KiB
C
/*
|
|
* CiderPress
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
* See the file LICENSE for distribution terms.
|
|
*/
|
|
// stdafx.h : include file for standard system include files,
|
|
// or project specific include files that are used frequently, but
|
|
// are changed infrequently
|
|
//
|
|
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <time.h>
|
|
|
|
#ifndef _WIN32
|
|
|
|
/* UNIX includes */
|
|
#include <stdarg.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <sys/time.h>
|
|
#include <fcntl.h>
|
|
#include <ctype.h>
|
|
|
|
#define O_BINARY 0
|
|
|
|
#define HAVE_VSNPRINTF
|
|
#define HAVE_FSEEKO
|
|
#define HAVE_FTRUNCATE
|
|
|
|
// gcc wants special compile options; just ignore this for now
|
|
#define override
|
|
|
|
#else /*_WIN32*/
|
|
|
|
#if !defined(AFX_STDAFX_H__1CB7B33E_42BF_4A98_B814_4198EA8ACC58__INCLUDED_)
|
|
#define AFX_STDAFX_H__1CB7B33E_42BF_4A98_B814_4198EA8ACC58__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#define HAVE_WINDOWS_CDROM // enable CD-ROM access under Windows
|
|
#define HAVE_CHSIZE
|
|
|
|
|
|
// Insert your headers here
|
|
# define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
|
|
|
#include "../app/targetver.h"
|
|
|
|
#include <windows.h>
|
|
#include <atlstr.h>
|
|
#include <io.h>
|
|
#include <fcntl.h>
|
|
|
|
#ifdef HAVE_WINDOWS_CDROM
|
|
# include <winioctl.h>
|
|
#endif
|
|
|
|
#ifndef _SSIZE_T_DEFINED
|
|
typedef unsigned int ssize_t;
|
|
#define _SSIZE_T_DEFINED
|
|
#endif
|
|
|
|
#define HAVE__VSNPRINTF
|
|
#define strcasecmp stricmp
|
|
#define snprintf _snprintf
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_STDAFX_H__1CB7B33E_42BF_4A98_B814_4198EA8ACC58__INCLUDED_)
|
|
#endif /*_WIN32*/
|