Include ../config.h for HAVE_UNISTD_H. Use it to guard inclusion of

2000-07-10  Tor Lillqvist  <tml@iki.fi>

* gobject-query.c: Include ../config.h for HAVE_UNISTD_H. Use it
to guard inclusion of <unistd.h>.

* gtype.h: Fix copy-paste errors in the ifdefs on how to declare a
variable for export. Call the macro GOBJECT_VAR.

* gtype.c: Declare _g_type_fundamental_last for export here, too.
(type_node_any_new): Use only constant expressions for sizeof
operator (for instance MSVC requires this).

* makefile.mingw.in: Define GOBJECT_COMPILATION.
This commit is contained in:
Tor Lillqvist
2000-07-10 18:02:51 +00:00
committed by Tor Lillqvist
parent 04bc211e6c
commit f8b6715ab1
5 changed files with 30 additions and 11 deletions

View File

@@ -16,11 +16,16 @@
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
#include "../config.h"
#include <glib-object.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/stat.h>
#include <fcntl.h>