|
00001 /* 00002 * File: recls_platform.h 00003 * 00004 * Purpose: Platform discrimination for the recls API. 00005 * 00006 * Created: 15th August 2003 00007 * Updated: 23rd September 2003 00008 * 00009 * License: (Licensed under the Synesis Software Standard Source License) 00010 * 00011 * Copyright (C) 2002-2003, Synesis Software Pty Ltd. 00012 * 00013 * All rights reserved. 00014 * 00015 * www: http://www.synesis.com.au/software 00016 * http://www.recls.org/ 00017 * 00018 * email: submissions@recls.org for submissions 00019 * admin@recls.org for other enquiries 00020 * 00021 * Redistribution and use in source and binary forms, with or 00022 * without modification, are permitted provided that the following 00023 * conditions are met: 00024 * 00025 * (i) Redistributions of source code must retain the above 00026 * copyright notice and contact information, this list of 00027 * conditions and the following disclaimer. 00028 * 00029 * (ii) Any derived versions of this software (howsoever modified) 00030 * remain the sole property of Synesis Software. 00031 * 00032 * (iii) Any derived versions of this software (howsoever modified) 00033 * remain subject to all these conditions. 00034 * 00035 * (iv) Neither the name of Synesis Software nor the names of any 00036 * subdivisions, employees or agents of Synesis Software, nor the 00037 * names of any other contributors to this software may be used to 00038 * endorse or promote products derived from this software without 00039 * specific prior written permission. 00040 * 00041 * This source code is provided by Synesis Software "as is" and any 00042 * warranties, whether expressed or implied, including, but not 00043 * limited to, the implied warranties of merchantability and 00044 * fitness for a particular purpose are disclaimed. In no event 00045 * shall the Synesis Software be liable for any direct, indirect, 00046 * incidental, special, exemplary, or consequential damages 00047 * (including, but not limited to, procurement of substitute goods 00048 * or services; loss of use, data, or profits; or business 00049 * interruption) however caused and on any theory of liability, 00050 * whether in contract, strict liability, or tort (including 00051 * negligence or otherwise) arising in any way out of the use of 00052 * this software, even if advised of the possibility of such 00053 * damage. 00054 * 00055 * 00056 00057 00058 #ifndef RECLS_INCL_H_RECLS_PLATFORM 00059 #define RECLS_INCL_H_RECLS_PLATFORM 00060 00061 /* File version */ 00062 #ifndef RECLS_DOCUMENTATION_SKIP_SECTION 00063 # define RECLS_VER_H_RECLS_PLATFORM_MAJOR 1 00064 # define RECLS_VER_H_RECLS_PLATFORM_MINOR 0 00065 # define RECLS_VER_H_RECLS_PLATFORM_REVISION 7 00066 # define RECLS_VER_H_RECLS_PLATFORM_EDIT 7 00067 #endif /* !RECLS_DOCUMENTATION_SKIP_SECTION */ 00068 00071 /* 00072 * Includes 00073 */ 00074 00075 #if defined(WIN32) || \ 00076 defined(_WIN32) 00077 # include <windows.h> 00078 # define RECLS_PLATFORM_IS_WIN32 00079 #elif defined(unix) || \ 00080 defined(__unix) || \ 00081 defined(__unix__) || \ 00082 ( defined(__xlC__) && \ 00083 defined(_POWER) && \ 00084 defined(_AIX)) 00085 # define RECLS_PLATFORM_IS_UNIX 00086 # include <time.h> 00087 #else 00088 # error Platform not (yet) recognised 00089 #endif /* platform */ 00090 00091 /* 00092 * Namespace 00093 */ 00094 00095 #if !defined(RECLS_NO_NAMESPACE) 00096 namespace recls 00097 { 00098 #endif /* !RECLS_NO_NAMESPACE */ 00099 00100 /* 00101 * Constants and definitions 00102 */ 00103 00106 #if defined(RECLS_PLATFORM_IS_WIN32) 00107 00108 # define RECLS_PATH_MAX (_MAX_PATH) 00109 00110 #elif defined(RECLS_PLATFORM_IS_UNIX) 00111 00112 # define RECLS_PATH_MAX (PATH_MAX) 00113 00114 #else 00115 00116 # error Platform not (yet) recognised 00117 00118 #endif /* platform */ 00119 00120 /* 00121 * Namespace 00122 */ 00123 00124 #if !defined(RECLS_NO_NAMESPACE) 00125 } /* namespace recls */ 00126 #endif /* !RECLS_NO_NAMESPACE */ 00127 00128 /* 00129 00130 #endif /* !RECLS_INCL_H_RECLS_PLATFORM */ 00131 00132 /*
|
recls Library documentation © Synesis Software Pty Ltd, 2001-2003 |