mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 00:17:57 +03:00
Fix BUILD_SERIAL.
Change from using #if to #ifdef, since #if can't cope with string constants.
This commit is contained in:
@@ -32,11 +32,21 @@ static char isa_magic[0]; /* guaranteed unique symbol */
|
||||
* User-supplied probe address list
|
||||
*
|
||||
*/
|
||||
static isa_probe_addr_t isa_extra_probe_addrs[] = {
|
||||
ISA_PROBE_ADDRS
|
||||
#if ISA_PROBE_ONLY
|
||||
, 0
|
||||
#ifdef ISA_PROBE_ADDRS
|
||||
# ifdef ISA_PROBE_ONLY
|
||||
# define HAVE_ISA_PROBE_ADDRS 1
|
||||
# define ISA_PROBE_ADDR_LIST ISA_PROBE_ADDRS, 0
|
||||
# else
|
||||
# define HAVE_ISA_PROBE_ADDRS 1
|
||||
# define ISA_PROBE_ADDR_LIST ISA_PROBE_ADDRS
|
||||
# endif
|
||||
#else
|
||||
# define HAVE_ISA_PROBE_ADDRS 0
|
||||
# define ISA_PROBE_ADDR_LIST
|
||||
#endif
|
||||
|
||||
static isa_probe_addr_t isa_extra_probe_addrs[] = {
|
||||
ISA_PROBE_ADDR_LIST
|
||||
};
|
||||
#define isa_extra_probe_addr_count \
|
||||
( sizeof ( isa_extra_probe_addrs ) / sizeof ( isa_extra_probe_addrs[0] ) )
|
||||
|
||||
Reference in New Issue
Block a user