]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
If I() and S() aren't inline, provide a prototype even if we're defining
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 17 Mar 2003 21:36:13 +0000 (21:36 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 17 Mar 2003 21:36:13 +0000 (21:36 +0000)
them.  This is useful for compilers that warn about un-prototyped functions.

[originally from svn r2952]

dialog.h

index fc1dd4142c6c81ed54e16d6fe84e4df469b7654f..a124e1abdd0adfefef5a53a3a3eeb7e40c3a9c36 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
 
 /*