summaryrefslogtreecommitdiff
path: root/lib/amigaos.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-04-06 23:35:15 +0200
committerYang Tse <yangsita@gmail.com>2012-04-06 23:37:05 +0200
commit919c97fa65a5c00f7044e849eeb0095408413505 (patch)
tree12b5005946b744b178cf1fecd310941074cffa45 /lib/amigaos.c
parent376b4d48feea9da98eda15ddf05c86729d9dc3f1 (diff)
downloadcurl-919c97fa65a5c00f7044e849eeb0095408413505.tar.gz
curl tool: use configuration files from lib directory
Configuration files such as curl_config.h and all config-*.h no longer exist nor are generated/copied into 'src' directory, now these only exist in 'lib' directory from where curl tool sources uses them. Additionally old src/setup.h has been refactored into src/tool_setup.h which now pulls lib/setup.h The possibility of a makefile needing an include path adjustment exists.
Diffstat (limited to 'lib/amigaos.c')
-rw-r--r--lib/amigaos.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/lib/amigaos.c b/lib/amigaos.c
index 2055126fe..71ea704e1 100644
--- a/lib/amigaos.c
+++ b/lib/amigaos.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -20,11 +20,14 @@
*
***************************************************************************/
-#ifdef __AMIGA__ /* Any AmigaOS flavour */
+#include "setup.h"
+
+#if defined(__AMIGA__) && !defined(__ixemul__)
-#include "amigaos.h"
#include <amitcp/socketbasetags.h>
+#include "amigaos.h"
+
struct Library *SocketBase = NULL;
extern int errno, h_errno;
@@ -35,7 +38,7 @@ void __request(const char *msg);
# define __request( msg ) Printf( msg "\n\a")
#endif
-void amiga_cleanup()
+void Curl_amiga_cleanup()
{
if(SocketBase) {
CloseLibrary(SocketBase);
@@ -43,7 +46,7 @@ void amiga_cleanup()
}
}
-BOOL amiga_init()
+bool Curl_amiga_init()
{
if(!SocketBase)
SocketBase = OpenLibrary("bsdsocket.library", 4);
@@ -61,20 +64,14 @@ BOOL amiga_init()
}
#ifndef __libnix__
- atexit(amiga_cleanup);
+ atexit(Curl_amiga_cleanup);
#endif
return TRUE;
}
#ifdef __libnix__
-ADD2EXIT(amiga_cleanup,-50);
-#endif
-
-#else /* __AMIGA__ */
-
-#ifdef __POCC__
-# pragma warn(disable:2024) /* Disable warning #2024: Empty input file */
+ADD2EXIT(Curl_amiga_cleanup,-50);
#endif
-#endif /* __AMIGA__ */
+#endif /* __AMIGA__ && ! __ixemul__ */