Thread (17 messages) flat view 17 messages, 5 authors, 2016-06-15

Re: [PATCH] Modify mingw_main() workaround to avoid link errors

From: Steffen Prohaska <hidden>
Date: 2016-06-15 22:45:03

On Jul 26, 2008, at 3:17 PM, Johannes Schindelin wrote:
On Sat, 26 Jul 2008, Steffen Prohaska wrote:
quoted
-#define main(c,v) main(int argc, const char **argv) \
+#define main(c,v) dummy_decl_mingw_main(); \
What is this dummy_*() statement supposed to do?

Avoid compile errors.  The original statement is

    int main( ...

But we want

    static int mingw_main( ...

So we need to first get rid of the original int, before
we can start the static decl.  We get rid by completing
the original int with the dummy_decl_mingw_main(); to a
full function decl.

	Steffen
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help