move includes to more logical positions

This commit is contained in:
2025-02-27 23:56:25 +01:00
parent 07dd15224c
commit f7cfeb3ad5
2 changed files with 8 additions and 2 deletions

View File

@@ -1,9 +1,15 @@
#pragma once
#include <stdint.h>
#include <math.h>
#include "gametime.h"
// constants for pi(π) and tau(τ)
#define PI (M_PI) // π constant
#define TAU (M_PI * 2.0) // τ constant
#define PIf (M_PIf) //
#define TAUf (M_PIf * 2.0F) //
typedef struct {
gametime time;
} gamedata;

View File

@@ -1,13 +1,13 @@
#ifndef DYNARR_H
#define DYNARR_H
#include <stddef.h>
#include <stdint.h>
#define DYNARR_COMB2(a, b) a##b
#define DYNARR_COMB1(a, b) DYNARR_COMB2(a, b)
#endif // DYNARR_H
#ifdef DYNARR_TYPE
#include <stdint.h>
#include <stdlib.h>
#include <string.h>