Permalink
Browse files

Compatibility with Apple TVOS

Reviewed By: emilsjolander

Differential Revision: D4001901

fbshipit-source-id: f095b4ac0ba91addb28d877b411ec27ecff4aad6
  • Loading branch information...
1 parent ce179d4 commit ef021348af80c0fb47ab2a2f1bc28917122dde31 Georgiy Kassabli committed with Facebook Github Bot Oct 13, 2016
Showing with 4 additions and 2 deletions.
  1. +4 −2 React/CSSLayout/CSSLayout.c
@@ -100,6 +100,8 @@ typedef struct CSSNode {
void *context;
} CSSNode;
+static void _CSSNodeMarkDirty(const CSSNodeRef node);
+
static float
computedEdgeValue(const float edges[CSSEdgeCount], const CSSEdge edge, const float defaultValue) {
CSS_ASSERT(edge <= CSSEdgeEnd, "Cannot get computed value of multi-edge shorthands");
@@ -131,7 +133,7 @@ computedEdgeValue(const float edges[CSSEdgeCount], const CSSEdge edge, const flo
static int32_t gNodeInstanceCount = 0;
-CSSNodeRef CSSNodeNew() {
+CSSNodeRef CSSNodeNew(void) {
const CSSNodeRef node = calloc(1, sizeof(CSSNode));
CSS_ASSERT(node, "Could not allocate memory for node");
gNodeInstanceCount++;
@@ -155,7 +157,7 @@ void CSSNodeFreeRecursive(const CSSNodeRef root) {
CSSNodeFree(root);
}
-int32_t CSSNodeGetInstanceCount() {
+int32_t CSSNodeGetInstanceCount(void) {
return gNodeInstanceCount;
}

0 comments on commit ef02134

Please sign in to comment.