1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-06-26 20:57:48 +02:00

Revert "Add feature flags and missing #includes."

This reverts commit dd5fa236ae.

Also, set `-std=gnu99` in Bazel build.
This commit is contained in:
iphydf 2020-04-17 20:34:27 +01:00
parent dd5fa236ae
commit 6f72a191ba
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
20 changed files with 1 additions and 25 deletions

View File

@ -16,6 +16,7 @@ cc_binary(
"//tools/config:osx": [],
}),
copts = [
"-std=gnu99",
"-DAUDIO",
"-DPACKAGE_DATADIR='\"data\"'",
"-DPYTHON",

View File

@ -41,7 +41,6 @@
#include <stdbool.h>
#include <curses.h>
#include <string.h>
#include <strings.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>

View File

@ -20,9 +20,6 @@
*
*/
/* TODO(iphydf): use nanosleep instead of usleep */
#define _XOPEN_SOURCE 500
#include "audio_device.h"
#ifdef AUDIO

View File

@ -22,9 +22,7 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <limits.h>
#include <sys/param.h>
#ifdef __APPLE__
#include <sys/types.h>

View File

@ -22,7 +22,6 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "toxic.h"
#include "windows.h"

View File

@ -20,7 +20,6 @@
*
*/
#define _POSIX_C_SOURCE 200809L
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

View File

@ -20,7 +20,6 @@
*
*/
#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <string.h>
#include <assert.h>

View File

@ -24,7 +24,6 @@
#define FILE_TRANSFERS_H
#include <limits.h>
#include <sys/param.h>
#include "toxic.h"
#include "windows.h"

View File

@ -22,7 +22,6 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "toxic.h"
#include "windows.h"

View File

@ -20,7 +20,6 @@
*
*/
#define _DEFAULT_SOURCE
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>

View File

@ -20,12 +20,9 @@
*
*/
#define _POSIX_C_SOURCE 200809L
#define _XOPEN_SOURCE 500
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <limits.h>
#include <dirent.h>

View File

@ -23,7 +23,6 @@
#define MISC_TOOLS_H
#include <sys/stat.h>
#include <sys/types.h>
#include "windows.h"
#include "toxic.h"

View File

@ -23,7 +23,6 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <curl/curl.h>
#include "toxic.h"

View File

@ -22,7 +22,6 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <libconfig.h>
#include <ctype.h>

View File

@ -24,7 +24,6 @@
#define SETTINGS_H
#include <limits.h>
#include <sys/param.h>
#include <tox/tox.h>

View File

@ -20,7 +20,6 @@
*
*/
#define _POSIX_C_SOURCE 2
#include <limits.h> /* PATH_MAX */
#include <stdio.h> /* fgets, popen, pclose */
#include <stdlib.h> /* malloc, realloc, free, getenv */

View File

@ -20,7 +20,6 @@
*
*/
#define _XOPEN_SOURCE 500
#include <curses.h>
#include <errno.h>
#include <stdio.h>
@ -31,7 +30,6 @@
#include <signal.h>
#include <locale.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <pthread.h>
#include <getopt.h>

View File

@ -33,7 +33,6 @@
#include <stdbool.h>
#include <curses.h>
#include <string.h>
#include <strings.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>

View File

@ -20,7 +20,6 @@
*
*/
#define _XOPEN_SOURCE 500
#include "video_device.h"
#include "video_call.h"

View File

@ -20,7 +20,6 @@
*
*/
#define _XOPEN_SOURCE 500
#include "xtra.h"
#include "misc_tools.h"