Fix build on various architectures
This commit is contained in:
parent
d21f758158
commit
aa355e22f9
3 changed files with 7 additions and 4 deletions
|
@ -84,7 +84,11 @@ if( NOT IMLIB_BUILD_WITH_X )
|
|||
endif( NOT IMLIB_BUILD_WITH_X )
|
||||
|
||||
|
||||
add_definitions( -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_WITH_GETLINE )
|
||||
add_definitions( -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_WITH_GETLINE )
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
add_definitions( -D_POSIX_C_SOURCE=200809L )
|
||||
endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
|
||||
|
||||
include_directories( ${PROJECT_BINARY_DIR}
|
||||
|
|
|
@ -1173,7 +1173,7 @@ double compute_control_point_offset(Area *area, Offset *offset)
|
|||
double height = element_area->height;
|
||||
double radius = sqrt(element_area->width * element_area->width + element_area->height * element_area->height) / 2.0;
|
||||
|
||||
double left, top;
|
||||
double left = 0, top = 0;
|
||||
if (offset->element == ELEMENT_SELF) {
|
||||
left = 0;
|
||||
top = 0;
|
||||
|
|
|
@ -67,11 +67,10 @@ void cleanup_gradient(GradientClass *g);
|
|||
// Gradient instances associated to Areas
|
||||
|
||||
struct Area;
|
||||
typedef struct Area Area;
|
||||
|
||||
typedef struct GradientInstance {
|
||||
GradientClass *gradient_class;
|
||||
Area *area;
|
||||
struct Area *area;
|
||||
cairo_pattern_t *pattern;
|
||||
} GradientInstance;
|
||||
|
||||
|
|
Loading…
Reference in a new issue