SDL_ListAdd(SDL_ListNode **head, void *ent)
{
    SDL_ListNode *node = SDL_malloc(sizeof (*node));

    if (node == NULL) {
        SDL_OutOfMemory();
        return;
    }

    node->entry = ent;
    node->next = *head;
    *head = node;
}
SDL_ListAdd(SDL_ListNode **head, void *ent)
{
    SDL_ListNode *node = SDL_malloc(sizeof (*node));

    if (node == NULL) {
        SDL_OutOfMemory();
        return;
    }

    node->entry = ent;
    node->next = *head;
    *head = node;
}