summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouk Jansen <joukj@hrem.stm.tudelft.nl>1999-10-11 04:22:57 +0000
committerJouk Jansen <joukj@hrem.stm.tudelft.nl>1999-10-11 04:22:57 +0000
commitcd555f456bbd274f65f0312a43cce0dec4a33727 (patch)
tree0457ca29be40e4d6236c286cf4e31a0c39e940f6 /src
parent0b6c775f1c4d69813ca8135cafbdd5c5608572e6 (diff)
Repaired definition of GL_CALLOC_STRUC
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index 9af40398d07..8c4f8738a96 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -1,4 +1,4 @@
-/* $Id: macros.h,v 1.3 1999/10/10 12:39:04 brianp Exp $ */
+/* $Id: macros.h,v 1.4 1999/10/11 04:22:57 joukj Exp $ */
/*
* Mesa 3-D graphics library
@@ -497,7 +497,7 @@ extern void gl_free(void *ptr);
#define GL_ALLOC(BYTES) (void *) malloc(BYTES)
#define GL_CALLOC(BYTES) (void *) calloc(1, BYTES)
#define GL_ALLOC_STRUCT(T) (struct T *) malloc(sizeof(struct T))
-#define GL_CALLOC_STRUCT(T) (struct T *) calloc(sizeof(struct T))
+#define GL_CALLOC_STRUCT(T) (struct T *) calloc(1,sizeof(struct T))
#define GL_FREE(PTR) free(PTR)
#endif