1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

If I() and S() aren't inline, provide a prototype even if we're defining

them.  This is useful for compilers that warn about un-prototyped functions.

[originally from svn r2952]
This commit is contained in:
Ben Harris 2003-03-17 21:36:13 +00:00
parent 93198194fb
commit cea3619ca9

View File

@ -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
/*