Skip to content

Commit

Permalink
general: Remove alloca.h blocks in favor of general.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTracer authored and dragonmux committed Dec 12, 2023
1 parent ef32a54 commit a892976
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@
#include "traceswo.h"
#endif

#if defined(_WIN32)
#include <malloc.h>
#else
#include <alloca.h>
#endif

static bool cmd_version(target_s *t, int argc, const char **argv);
static bool cmd_help(target_s *t, int argc, const char **argv);

Expand Down
5 changes: 0 additions & 5 deletions src/gdb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@
#define GDB_QSUPPORTED_NOACKMODE
#endif

#if defined(_WIN32)
#include <malloc.h>
#else
#include <alloca.h>
#endif
#include <stdlib.h>

typedef enum gdb_signal {
Expand Down
5 changes: 0 additions & 5 deletions src/target/cortexm.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@

#include <string.h>
#include <assert.h>
#if defined(_WIN32) || defined(__CYGWIN__)
#include <malloc.h>
#else
#include <alloca.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
Expand Down

0 comments on commit a892976

Please sign in to comment.