| 1 |
/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */ |
| 2 |
|
| 3 |
/* libmwaw: tools |
| 4 |
* Version: MPL 2.0 / LGPLv2+ |
| 5 |
* |
| 6 |
* The contents of this file are subject to the Mozilla Public License Version |
| 7 |
* 2.0 (the "License"); you may not use this file except in compliance with |
| 8 |
* the License or as specified alternatively below. You may obtain a copy of |
| 9 |
* the License at http://www.mozilla.org/MPL/ |
| 10 |
* |
| 11 |
* Software distributed under the License is distributed on an "AS IS" basis, |
| 12 |
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 13 |
* for the specific language governing rights and limitations under the |
| 14 |
* License. |
| 15 |
* |
| 16 |
* Major Contributor(s): |
| 17 |
* Copyright (C) 2011, 2012 Alonso Laurent ([email protected]) |
| 18 |
* |
| 19 |
* |
| 20 |
* All Rights Reserved. |
| 21 |
* |
| 22 |
* For minor contributions see the git repository. |
| 23 |
* |
| 24 |
* Alternatively, the contents of this file may be used under the terms of |
| 25 |
* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"), |
| 26 |
* in which case the provisions of the LGPLv2+ are applicable |
| 27 |
* instead of those above. |
| 28 |
*/ |
| 29 |
|
| 30 |
#ifndef ZIP_INTERNAL_H |
| 31 |
# define ZIP_INTERNAL_H |
| 32 |
|
| 33 |
#ifdef HAVE_CONFIG_H |
| 34 |
# include "config.h" |
| 35 |
#endif |
| 36 |
|
| 37 |
#include <string.h> |
| 38 |
#include <stdio.h> |
| 39 |
|
| 40 |
#include <memory> |
| 41 |
|
| 42 |
#ifdef DEBUG |
| 43 |
#define MWAW_DEBUG_MSG(M) printf M |
| 44 |
#else |
| 45 |
#define MWAW_DEBUG_MSG(M) |
| 46 |
#endif |
| 47 |
|
| 48 |
#if defined(_MSC_VER) || defined(__DJGPP__) |
| 49 |
|
| 50 |
typedef signed char int8_t; |
| 51 |
typedef unsigned char uint8_t; |
| 52 |
typedef signed short int16_t; |
| 53 |
typedef unsigned short uint16_t; |
| 54 |
typedef signed int int32_t; |
| 55 |
typedef unsigned int uint32_t; |
| 56 |
typedef unsigned __int64 uint64_t; |
| 57 |
typedef __int64 int64_t; |
| 58 |
|
| 59 |
#else /* !_MSC_VER && !__DJGPP__*/ |
| 60 |
|
| 61 |
# ifdef HAVE_CONFIG_H |
| 62 |
|
| 63 |
# include <config.h> |
| 64 |
# ifdef HAVE_STDINT_H |
| 65 |
# include <stdint.h> |
| 66 |
# endif |
| 67 |
# ifdef HAVE_INTTYPES_H |
| 68 |
# include <inttypes.h> |
| 69 |
# endif |
| 70 |
|
| 71 |
# else |
| 72 |
|
| 73 |
// assume that the headers are there inside LibreOffice build when no HAVE_CONFIG_H is defined |
| 74 |
# include <stdint.h> |
| 75 |
# include <inttypes.h> |
| 76 |
|
| 77 |
# endif |
| 78 |
|
| 79 |
#endif |
| 80 |
|
| 81 |
#endif |
| 82 |
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab: |