added extern c to most files

This commit is contained in:
herbglitch 2023-01-30 23:22:34 -07:00
parent b024e8d5c1
commit 5badf331fd
7 changed files with 40 additions and 6 deletions

View file

@ -3,16 +3,27 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ARC_Point {
int32_t x, y;
int32_t x;
int32_t y;
} ARC_Point;
typedef struct ARC_UPoint {
uint32_t x, y;
uint32_t x;
uint32_t y;
} ARC_UPoint;
typedef struct ARC_FPoint {
float x, y;
float x;
float y;
} ARC_FPoint;
#ifdef __cplusplus
}
#endif
#endif // ARC_MATH_POINT_H_

View file

@ -3,6 +3,10 @@
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ARC_Rect {
int32_t x;
int32_t y;
@ -21,4 +25,8 @@ int32_t ARC_Rect_Intersects(ARC_Rect *rect1, ARC_Rect *rect2);
int32_t ARC_Rect_LineIntersects(ARC_Rect *rect, int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2);
#ifdef __cplusplus
}
#endif
#endif // ARC_MATH_POINT_H_

View file

@ -1,6 +1,10 @@
#ifndef ARC_MATH_VECTOR2_H_
#define ARC_MATH_VECTOR2_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ARC_Vector2 {
float x, y;
} ARC_Vector2;
@ -9,4 +13,10 @@ typedef struct ARC_DVector2 {
double x, y;
} ARC_DVector2;
void ARC_Vector2_Normalize(ARC_Vector2 *vector);
#ifdef __cplusplus
}
#endif
#endif // ARC_MATH_VECTOR2_H_