From 5042346db613e5cf917b4b94b5c7ffe4d6583a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 2 Feb 2005 03:01:39 +0000 Subject: [PATCH] Fixed broken conditional ENABLE_SERIAL handling. Also added a comment about what ENABLE_SERIAL is for. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11195 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/boot/platform/bios_ia32/serial.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/kernel/boot/platform/bios_ia32/serial.cpp b/src/kernel/boot/platform/bios_ia32/serial.cpp index 6faaae2dd5..c56897c009 100644 --- a/src/kernel/boot/platform/bios_ia32/serial.cpp +++ b/src/kernel/boot/platform/bios_ia32/serial.cpp @@ -1,7 +1,7 @@ /* -** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ + * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ #include "serial.h" @@ -13,6 +13,10 @@ #include +//#define ENABLE_SERIAL + // define this to always enable serial output + + enum serial_register_offsets { SERIAL_TRANSMIT_BUFFER = 0, SERIAL_RECEIVE_BUFFER = 0, @@ -65,7 +69,7 @@ serial_puts(const char *string, size_t size) extern "C" void serial_disable(void) { -#if ENABLE_SERIAL +#ifdef ENABLE_SERIAL sSerialEnabled = 0; #else sSerialEnabled--;