Skip to content

Commit

Permalink
Import pygame.h in newbuffer.c for DEL_ATTR_NOT_SUPPORTED_CHECK
Browse files Browse the repository at this point in the history
This requires that $(SDL) is added to the flags for newbuffer.c as
pygame.h assumes SDL.h is available.

Signed-off-by: Niels Thykier <niels@thykier.net>
  • Loading branch information
nthykier committed May 24, 2020
1 parent fdb81cb commit 4cc5485
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildconfig/Setup.SDL1.in
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ bufferproxy src_c/bufferproxy.c $(SDL) $(DEBUG)
pixelarray src_c/pixelarray.c $(SDL) $(DEBUG)
math src_c/math.c $(SDL) $(DEBUG)
pixelcopy src_c/pixelcopy.c $(SDL) $(DEBUG)
newbuffer src_c/newbuffer.c $(DEBUG)
newbuffer src_c/newbuffer.c $(SDL) $(DEBUG)
2 changes: 1 addition & 1 deletion buildconfig/Setup.SDL2.in
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ bufferproxy src_c/bufferproxy.c $(SDL) $(DEBUG)
pixelarray src_c/pixelarray.c $(SDL) $(DEBUG)
math src_c/math.c $(SDL) $(DEBUG)
pixelcopy src_c/pixelcopy.c $(SDL) $(DEBUG)
newbuffer src_c/newbuffer.c $(DEBUG)
newbuffer src_c/newbuffer.c $(SDL) $(DEBUG)
1 change: 1 addition & 0 deletions src_c/newbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/

#include "pygame.h"
#include <Python.h>

#include "pgcompat.h"
Expand Down

0 comments on commit 4cc5485

Please sign in to comment.