I found two problems when I compiled by Visual C++.
Would you fix these?
1.gpgme.h
time_t is defined in time.h. But time_t is used in gpgme.h without time.h.
It may be enough just to include stdio.h or sys/types.h in some systems.
But time.h is needed on Visual C++.
2.Non generic header
There are not unistd.h and sys/time.h in Visual C++.
I think that these should be surrounded with "#ifdef HAVE_*_H" and "#endif".
For example,
#ifdef HAVE_UNISTD_H
include <unistd.h>
#endif
#ifdef HAVE_SYS_TIME_H
include <sys/time.h>
#endif