Created
February 21, 2012 01:30
-
-
Save cfcosta/1872816 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clang -DPACKAGE_NAME=\"shmup\" -DPACKAGE_TARNAME=\"shmup\" -DPACKAGE_VERSION=\"0.1\" -DPACKAGE_STRING=\"shmup\ 0.1\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE=\"shmup\" -DVERSION=\"0.1\" -I. -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/usr/local/include/SDL -Wall -Werror -ansi -finline-functions -g -O2 -MT shmup-sprite_stack.o -MD -MP -MF .deps/shmup-sprite_stack.Tpo -c -o shmup-sprite_stack.o `test -f 'sprite_stack.c' || echo './'`sprite_stack.c | |
In file included from sprite_stack.c:1: | |
./sprite_stack.h:9:5: error: unknown type name 'sprite_node' | |
sprite_node *previous; | |
^ | |
./sprite_stack.h:10:5: error: unknown type name 'sprite_node' | |
sprite_node *next; | |
^ | |
2 errors generated. | |
make[1]: *** [shmup-sprite_stack.o] Error 1 | |
make: *** [all-recursive] Error 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef H_SPRITE_STACK | |
#define H_SPRITE_STACK | |
#include "graphics.h" | |
typedef struct { | |
sprite *sprite; | |
sprite_node *previous; | |
sprite_node *next; | |
} sprite_node; | |
sprite_node *first; | |
sprite_node *last; | |
void stack_remove(sprite_node *node); | |
void stack_push(sprite_node *node); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment