#1120 SWIG wont resolve properly pointer in the end of define

closed-works-for-me
5
2011-02-05
2010-12-27
Anonymous
No

<code src="GL/gl.h">
#ifndef APIENTRYP
#define APIENTRYP APIENTRY *
#endif

#ifndef GLAPIENTRYP
#define GLAPIENTRYP GLAPIENTRY *
#endif
</code>

GL/gl.h:118: Warning 305: Bad constant value (ignored).
GL/gl.h:122: Warning 305: Bad constant value (ignored).

If space removed `#define APIENTRYP APIENTRY *`
like `#define APIENTRYP APIENTRY*` there is no warning anymore.

Discussion

  • William Fulton
    William Fulton
    2011-02-05

    I cannot reproduce this problem and have tried a few versions of SWIG from 1.3.29 to 2.0.1. The version of gl.h on my system does not have that code either. If this is still a problem, please re-open and attach gl.h as an attachment.

     
  • William Fulton
    William Fulton
    2011-02-05

    • assigned_to: nobody --> wsfulton
    • status: open --> closed-works-for-me