change WIN32 to _WIN32, and add test.cpp and modify git ignore file