If I() and S() aren't inline, provide a prototype even if we're defining
authorben <ben@cda61777-01e9-0310-a592-d414129be87e>
Mon, 17 Mar 2003 21:36:13 +0000 (21:36 +0000)
committerben <ben@cda61777-01e9-0310-a592-d414129be87e>
Mon, 17 Mar 2003 21:36:13 +0000 (21:36 +0000)
them.  This is useful for compilers that warn about un-prototyped functions.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2952 cda61777-01e9-0310-a592-d414129be87e

dialog.h

index fc1dd41..a124e1a 100644 (file)
--- a/dialog.h
+++ b/dialog.h
@@ -51,6 +51,11 @@ enum {
  */
 typedef union { void *p; int i; } intorptr;
 
+#ifndef INLINE
+intorptr I(int i);
+intorptr P(void *p);
+#endif
+
 #if defined DEFINE_INTORPTR_FNS || defined INLINE
 #ifdef INLINE
 #define PREFIX INLINE
@@ -60,9 +65,6 @@ typedef union { void *p; int i; } intorptr;
 PREFIX intorptr I(int i) { intorptr ret; ret.i = i; return ret; }
 PREFIX intorptr P(void *p) { intorptr ret; ret.p = p; return ret; }
 #undef PREFIX
-#else
-intorptr I(int i);
-intorptr P(void *p);
 #endif
 
 /*