Remove some unnecessary #if/#ifdef from some header files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2598 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2007-05-21 03:21:53 +00:00
parent 15b9277fb8
commit 76f407a69e
6 changed files with 4 additions and 20 deletions

View File

@ -63,7 +63,6 @@ typedef struct _UGA_DEVICE {
} }
UGA_DEVICE, *PUGA_DEVICE; UGA_DEVICE, *PUGA_DEVICE;
#ifndef UGA_IO_REQUEST_CODE
// //
// Prevent conflicts with UGA typedefs. // Prevent conflicts with UGA typedefs.
// //
@ -94,8 +93,6 @@ typedef enum {
} }
UGA_IO_REQUEST_CODE, *PUGA_IO_REQUEST_CODE; UGA_IO_REQUEST_CODE, *PUGA_IO_REQUEST_CODE;
#endif
typedef struct { typedef struct {
IN UGA_IO_REQUEST_CODE ioRequestCode; IN UGA_IO_REQUEST_CODE ioRequestCode;
IN VOID *pvInBuffer; IN VOID *pvInBuffer;

View File

@ -85,16 +85,14 @@ Revision History
// Check to see if current build support option active feature of // Check to see if current build support option active feature of
// some driver option // some driver option
// //
#ifndef LOAD_OPTION_ACTIVE
#define LOAD_OPTION_ACTIVE 0x00000001 #define LOAD_OPTION_ACTIVE 0x00000001
#endif
// //
// Check to see if current build support force reconnect feature of // Check to see if current build support force reconnect feature of
// some driver option // some driver option
// //
#ifndef LOAD_OPTION_FORCE_RECONNECT
#define LOAD_OPTION_FORCE_RECONNECT 0x00000002 #define LOAD_OPTION_FORCE_RECONNECT 0x00000002
#endif
// //
// Below are the form ids for display, form id is used as callback key value, // Below are the form ids for display, form id is used as callback key value,
// some key value definitions are also defined here. By defining this enum type, // some key value definitions are also defined here. By defining this enum type,

View File

@ -24,9 +24,7 @@ Revision History
#ifndef _LANGUAGE_H #ifndef _LANGUAGE_H
#define _LANGUAGE_H #define _LANGUAGE_H
#ifndef ISO_639_2_ENTRY_SIZE
#define ISO_639_2_ENTRY_SIZE 3 #define ISO_639_2_ENTRY_SIZE 3
#endif
VOID VOID
InitializeLanguage ( InitializeLanguage (

View File

@ -85,16 +85,14 @@ Revision History
// Check to see if current build support option active feature of // Check to see if current build support option active feature of
// some driver option // some driver option
// //
#ifndef LOAD_OPTION_ACTIVE
#define LOAD_OPTION_ACTIVE 0x00000001 #define LOAD_OPTION_ACTIVE 0x00000001
#endif
// //
// Check to see if current build support force reconnect feature of // Check to see if current build support force reconnect feature of
// some driver option // some driver option
// //
#ifndef LOAD_OPTION_FORCE_RECONNECT
#define LOAD_OPTION_FORCE_RECONNECT 0x00000002 #define LOAD_OPTION_FORCE_RECONNECT 0x00000002
#endif
// //
// Below are the form ids for display, form id is used as callback key value, // Below are the form ids for display, form id is used as callback key value,
// some key value definitions are also defined here. By defining this enum type, // some key value definitions are also defined here. By defining this enum type,

View File

@ -24,9 +24,7 @@ Revision History
#ifndef _LANGUAGE_H #ifndef _LANGUAGE_H
#define _LANGUAGE_H #define _LANGUAGE_H
#ifndef ISO_639_2_ENTRY_SIZE
#define ISO_639_2_ENTRY_SIZE 3 #define ISO_639_2_ENTRY_SIZE 3
#endif
VOID VOID
InitializeLanguage ( InitializeLanguage (

View File

@ -83,13 +83,8 @@ typedef struct {
#pragma pack(1) #pragma pack(1)
typedef struct { typedef struct {
#ifdef EFI_NET_LITTLE_ENDIAN
UINT8 HeaderLength:4; UINT8 HeaderLength:4;
UINT8 Version:4; UINT8 Version:4;
#else
UINT8 Version:4;
UINT8 HeaderLength:4;
#endif
UINT8 TypeOfService; UINT8 TypeOfService;
UINT16 TotalLength; UINT16 TotalLength;
UINT16 Identification; UINT16 Identification;