Permalink
Browse files

CMake: fix NULL not available with only these headers

git-svn-id: http://eathena-project.googlecode.com/svn/trunk@15134 54d463be-8e91-2dee-dedb-b68131a5f0ec
  • Loading branch information...
flaviojs
flaviojs committed Jun 13, 2012
1 parent b753ebe commit 2eb3d11ba5c931bad625f2c40906bfccc30a97e3
Showing with 2 additions and 2 deletions.
  1. +2 −2 3rdparty/cmake/tests/MYSQL_TRY_RUN.c
@@ -4,8 +4,8 @@
#include "mysql.h"
int main(int argc, char** argv)
{
- MYSQL* h = mysql_init(NULL);
- if(h == NULL) return 1;//error
+ MYSQL* h = mysql_init(0);
+ if(h == 0) return 1;//error
mysql_close(h);
return 0;
}

0 comments on commit 2eb3d11

Please sign in to comment.