Clean up and clearly differentiate required and optional items in configuration files. Enable the system command and synchronize configuration options between all CPU architectures. Replace the UEFI_ENV macro with UEFI_C_SOURCE to align with Linux and Posix conventions. Update copyrights and versions and make minor cosmetic enhancements to files. Fix compiler-specific build errors. Add Python-specific ReadMe file. Signed-off-by: darylm503 Reviewed-by: geekboy15a Reviewed-by: jljusten Reviewed-by: leegrosenbaum git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13119 6f19259b-4bc3-4df7-8a09-765794883524
		
			
				
	
	
		
			72 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
    Operating system dependencies.
 | 
						|
 | 
						|
    Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>
 | 
						|
    This program and the accompanying materials are licensed and made available under
 | 
						|
    the terms and conditions of the BSD License that accompanies this distribution.
 | 
						|
    The full text of the license may be found at
 | 
						|
    http://opensource.org/licenses/bsd-license.
 | 
						|
 | 
						|
    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | 
						|
    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | 
						|
**/
 | 
						|
#ifndef Py_OSDEFS_H
 | 
						|
#define Py_OSDEFS_H
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
 | 
						|
/* Mod by chrish: QNX has WATCOM, but isn't DOS */
 | 
						|
#if !defined(__QNX__) && !defined(UEFI_C_SOURCE)
 | 
						|
#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
 | 
						|
#if defined(PYOS_OS2) && defined(PYCC_GCC)
 | 
						|
#define MAXPATHLEN 260
 | 
						|
#define SEP '/'
 | 
						|
#define ALTSEP '\\'
 | 
						|
#else
 | 
						|
#define SEP '\\'
 | 
						|
#define ALTSEP '/'
 | 
						|
#define MAXPATHLEN 256
 | 
						|
#endif
 | 
						|
#define DELIM ';'
 | 
						|
#endif
 | 
						|
#endif
 | 
						|
 | 
						|
#ifdef RISCOS
 | 
						|
#define SEP '.'
 | 
						|
#define MAXPATHLEN 256
 | 
						|
#define DELIM ','
 | 
						|
#endif
 | 
						|
 | 
						|
 | 
						|
/* Filename separator */
 | 
						|
#ifndef SEP
 | 
						|
#define SEP     '/'
 | 
						|
#define ALTSEP  '\\'
 | 
						|
#endif
 | 
						|
 | 
						|
/* Max pathname length */
 | 
						|
#ifndef MAXPATHLEN
 | 
						|
#if defined(PATH_MAX) && PATH_MAX > 1024
 | 
						|
#define MAXPATHLEN PATH_MAX
 | 
						|
#else
 | 
						|
#define MAXPATHLEN 1024
 | 
						|
#endif
 | 
						|
#endif
 | 
						|
 | 
						|
/* Search path entry delimiter */
 | 
						|
#ifndef DELIM
 | 
						|
  #ifdef  UEFI_C_SOURCE
 | 
						|
    #define DELIM   ';'
 | 
						|
    #define DELIM_STR   ";"
 | 
						|
  #else
 | 
						|
    #define DELIM   ':'
 | 
						|
  #endif
 | 
						|
#endif
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 | 
						|
#endif /* !Py_OSDEFS_H */
 |