Some hosts provide htonl as a macro through system headers. Avoid
redeclaring the Pro-Wizard helper in that case.
Also provide a no-op _cdecl definition for non-Windows builds so shared
Pro-Wizard declarations compile without Windows calling-convention
macros.
extern long PWGetFileSize ( char * );
extern FILE * PW_fopen ( char *, char * );
extern void fillPTKtable ( Uchar[37][2] );
+#ifndef htonl
extern unsigned int htonl(unsigned int);
+#endif
/* globals */
/* Some say it's badly coding when using Globals ... sure it is, now what's the solution ? */
{
return (v >> 24) | ((v >> 8) & 0xff00) | (v << 24) | ((v << 8) & 0xff0000);
}
+#else
+#ifndef _cdecl
+#define _cdecl
+#endif
#endif
#define _KNOWN_FORMATS 135
return;
}
+#ifndef htonl
unsigned int htonl(unsigned int v)
{
return ((v >> 24) & 0x000000ff) | ((v >> 8) & 0x0000ff00) | ((v << 8) & 0x00ff0000) | ((v << 24) & 0xff000000);
}
+#endif