Around emacs, linux, etc.
用CPP做apache的module
有三个地方要改
- 首先注释掉include/ap_config_auto.h里面的
- define AP_HAVE_DESIGNATED_INITIALIZER 1
- if (defined(__GNUC__) && !defined(__cplusplus)) \
|| (defined(__STDC_VERSION) && __STDC_VERSION__ > 199901L)
- define AP_HAVE_DESIGNATED_INITIALIZER 1
- endif
typedef const char *(*cmd_func) ();
为
- if (defined(__GNUC__) && !defined(__cplusplus)) \
|| (defined(__STDC_VERSION) && __STDC_VERSION__ > 199901L)
typedef const char *(*cmd_func) ();
- else
typedef const char *(*cmd_func) (cmd_parms*, void*, const char*);
- endif
| Print article | This entry was posted by Jay Xie on 2006/07/15 at 3:31 pm, and is filed under Apache. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 3 years ago
刚刚看了下httpd-trunk
里面已经把AP_HAVE_DESIGNATED_INITIALIZER的宏定义改成上面那样了
但是cmd_func还没改 不知道是2.2.2还是哪个版本以上就只需要做第3步就可以了
about 1 year ago
貌似不用这么麻烦
在Makefile里面加上这两句就行了: