1 /* 2 * The internal type definitions 3 * 4 * Copyright (C) 2009-2018, Joachim Metz <joachim.metz@gmail.com> 5 * 6 * Refer to AUTHORS for acknowledgements. 7 * 8 * This software is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU Lesser General Public License as published by 10 * the Free Software Foundation, either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * This software is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public License 19 * along with this software. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #if !defined( _LIBFDATETIME_INTERNAL_TYPES_H ) 23 #define _LIBFDATETIME_INTERNAL_TYPES_H 24 25 #include <common.h> 26 #include <types.h> 27 28 /* Define HAVE_LOCAL_LIBFDATETIME for local use of libfdatetime 29 * The definitions in <libfdatetime/types.h> are copied here 30 * for local use of libfdatetime 31 */ 32 #if defined( HAVE_LOCAL_LIBFDATETIME ) 33 34 /* The following type definitions hide internal data structures 35 */ 36 #if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) 37 typedef struct libfdatetime_fat_date {} libfdatetime_fat_date_t; 38 typedef struct libfdatetime_fat_date_time {} libfdatetime_fat_date_time_t; 39 typedef struct libfdatetime_fat_time {} libfdatetime_fat_time_t; 40 typedef struct libfdatetime_filetime {} libfdatetime_filetime_t; 41 typedef struct libfdatetime_floatingtime {} libfdatetime_floatingtime_t; 42 typedef struct libfdatetime_hfs_time {} libfdatetime_hfs_time_t; 43 typedef struct libfdatetime_nsf_timedate {} libfdatetime_nsf_timedate_t; 44 typedef struct libfdatetime_posix_time {} libfdatetime_posix_time_t; 45 typedef struct libfdatetime_systemtime {} libfdatetime_systemtime_t; 46 47 #else 48 typedef intptr_t libfdatetime_fat_date_t; 49 typedef intptr_t libfdatetime_fat_date_time_t; 50 typedef intptr_t libfdatetime_fat_time_t; 51 typedef intptr_t libfdatetime_filetime_t; 52 typedef intptr_t libfdatetime_floatingtime_t; 53 typedef intptr_t libfdatetime_hfs_time_t; 54 typedef intptr_t libfdatetime_nsf_timedate_t; 55 typedef intptr_t libfdatetime_posix_time_t; 56 typedef intptr_t libfdatetime_systemtime_t; 57 58 #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ 59 60 #endif /* defined( HAVE_LOCAL_LIBFDATETIME ) */ 61 62 #endif /* !defined( _LIBFDATETIME_INTERNAL_TYPES_H ) */ 63 64