Skip to content

Commit

Permalink
Add header files needed for gcc 11.04
Browse files Browse the repository at this point in the history
MSVC 17.7 compiled these without a problem, however on Ubuntu using
gcc 11.04, the additional #includes is required.
  • Loading branch information
Randalphwa committed Feb 1, 2024
1 parent d099807 commit 7c57115
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/plutovg/plutovg-blend.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "plutovg-private.h"

#include <cstring>
#include <float.h>
#include <limits.h>
#include <math.h>
Expand Down
1 change: 1 addition & 0 deletions source/plutovg/plutovg-dash.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "plutovg-private.h"

#include <cstring>
#include <math.h>

plutovg_dash_t* plutovg_dash_create(double offset, const double* data, int size)
Expand Down
3 changes: 3 additions & 0 deletions source/plutovg/plutovg-paint.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#include "plutovg-private.h"

#include <cstdlib>
#include <cstring>

void plutovg_color_init_rgb(plutovg_color_t* color, double r, double g, double b)
{
plutovg_color_init_rgba(color, r, g, b, 1.0);
Expand Down
1 change: 1 addition & 0 deletions source/plutovg/plutovg-rle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "plutovg-ft-raster.h"
#include "plutovg-ft-stroker.h"

#include <cstring>
#include <limits.h>
#include <math.h>

Expand Down
2 changes: 2 additions & 0 deletions source/plutovg/plutovg.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "plutovg-private.h"

#include <cstdlib>

plutovg_surface_t* plutovg_surface_create(int width, int height)
{
plutovg_surface_t* surface = new plutovg_surface_t;
Expand Down

0 comments on commit 7c57115

Please sign in to comment.