Skip to content

Commit 35db4da

Browse files
committed
stdstring header include cleanups
1 parent ecc3014 commit 35db4da

18 files changed

+20
-12
lines changed

audio/drivers/alsa.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <stdlib.h>
1919

2020
#include <lists/string_list.h>
21-
#include <string/stdstring.h>
2221

2322
#include <alsa/asoundlib.h>
2423
#include <alsa/pcm.h>
@@ -209,7 +208,6 @@ static struct string_list *alsa_microphone_device_list_new(const void *data)
209208

210209
static void alsa_microphone_device_list_free(const void *driver_context, struct string_list *devices)
211210
{
212-
(void)driver_context;
213211
string_list_free(devices);
214212
/* Does nothing if devices is NULL */
215213
}

audio/drivers/alsathread.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
#include <rthreads/rthreads.h>
2525
#include <queues/fifo_queue.h>
26-
#include <string/stdstring.h>
2726
#include <asm-generic/errno.h>
2827

2928
#include "../audio_driver.h"

audio/drivers/wasapi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include <lists/string_list.h>
2020
#include <queues/fifo_queue.h>
21-
#include <string/stdstring.h>
2221

2322
#ifdef HAVE_THREADS
2423
#include <rthreads/rthreads.h>

gfx/common/dxgi_common.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515

1616
#include <compat/strl.h>
17-
#include <string/stdstring.h>
1817
#include <retro_environment.h>
1918

2019
#ifdef HAVE_CONFIG_H

gfx/common/egl_common.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
#endif
1919

2020
#include <stdlib.h>
21-
22-
#include <string/stdstring.h>
21+
#include <string.h>
2322

2423
#ifdef HAVE_CONFIG_H
2524
#include "../../config.h"

gfx/common/x11_common.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343
#include <encodings/utf.h>
4444
#include <compat/strl.h>
45-
#include <string/stdstring.h>
4645

4746
#ifdef HAVE_DBUS
4847
#include "dbus_common.h"

gfx/display_servers/dispserv_kms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
*/
1717

1818
#include <math.h>
19+
#include <string.h>
1920

2021
#include <compat/strl.h>
21-
#include <string/stdstring.h>
2222

2323
#include <sys/types.h>
2424
#include <unistd.h>

gfx/display_servers/dispserv_x11.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
/* We are targeting XRandR 1.2 here. */
1919
#include <math.h>
20+
#include <string.h>
2021

2122
#include <compat/strl.h>
2223
#include <string/stdstring.h>

gfx/gfx_display.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* You should have received a copy of the GNU General Public License along with RetroArch.
1515
* If not, see <http://www.gnu.org/licenses/>.
1616
*/
17+
#include <string/stdstring.h>
18+
1719
#include "gfx_display.h"
1820

1921
#include "../configuration.h"

gfx/gfx_display.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
#include <boolean.h>
2727
#include <retro_common_api.h>
28-
#include <string/stdstring.h>
2928
#include <formats/image.h>
3029
#include <gfx/math/matrix_4x4.h>
3130

0 commit comments

Comments
 (0)