summaryrefslogtreecommitdiff
path: root/apps/Gateway
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-08 20:44:44 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-08 20:44:44 +0000
commite2e3b6840bc8e9cc31640f9ef00035bc6358c76d (patch)
treec5c944db316770d27c4e2ed90e7c47d395eba71b /apps/Gateway
parent5a87611edd99214fcc4efcb0993e76be8cfef28f (diff)
downloadATCD-e2e3b6840bc8e9cc31640f9ef00035bc6358c76d.tar.gz
(getint): egcs 1.1b can't handle the FP_RETURN_TYPE typedef. So,
use FP::Return_Type with __GNUG__.
Diffstat (limited to 'apps/Gateway')
-rw-r--r--apps/Gateway/Gateway/File_Parser.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/Gateway/Gateway/File_Parser.cpp b/apps/Gateway/Gateway/File_Parser.cpp
index dff477b121c..be15adfd2f1 100644
--- a/apps/Gateway/Gateway/File_Parser.cpp
+++ b/apps/Gateway/Gateway/File_Parser.cpp
@@ -44,7 +44,13 @@ template <class ENTRY> FP_RETURN_TYPE
File_Parser<ENTRY>::getint (ACE_INT32 &value)
{
char buf[BUFSIZ];
- FP_RETURN_TYPE read_result = this->readword (buf);
+#if defined (__GNUG__)
+ // egcs 1.1b can't handle the typedef.
+ FP::Return_Type
+#else /* ! __GNUG__ */
+ FP_RETURN_TYPE
+#endif /* ! __GNUG__ */
+ read_result = this->readword (buf);
if (read_result == FP::SUCCESS)
{