region: Fix a warning of implicit declaration 19/301919/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 27 Nov 2023 07:36:42 +0000 (16:36 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 27 Nov 2023 08:54:59 +0000 (17:54 +0900)
Since the commit '91541b3' was applied, the declaration of function has
been removed from the 'region.h' header.

This patch fixes a following warning by including 'libds/region.h' from
'region.h'.

Change-Id: I59737e934aa95b535dba61b360ddca228dda5f7e
warning: implicit declaration of function 'ds_region_from_resource'

src/compositor/compositor.c
src/compositor/surface.c
src/region.c

index 3540755..a8dd285 100644 (file)
@@ -1,3 +1,4 @@
+#include "libds/region.h"
 #include "region.h"
 #include "compositor_private.h"
 
index 7e7b4b9..1f8b2c4 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdlib.h>
 
+#include "libds/region.h"
 #include "region.h"
 #include "compositor_private.h"
 
index 17fb1ae..97d1338 100644 (file)
@@ -2,6 +2,7 @@
 #include <math.h>
 #include <pixman.h>
 
+#include "libds/region.h"
 #include "libds/log.h"
 
 #include "util.h"