dominus

Untitled

Oct 19th, 2019
214
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. In file included from SDL_syscdrom.c:31:
  2. In file included from ./SDL_syscdrom_c.h:131:
  3. ./../SDL_syscdrom.h:103:15: error: redefinition of 'CDcaps'
  4. extern struct CDcaps {
  5. ^
  6. ./../SDL_syscdrom.h:27:15: note: previous definition is here
  7. extern struct CDcaps {
  8. ^
  9. ./../SDL_syscdrom.h:138:3: error: redeclaration of 'SDL_CDcaps' with a different
  10. type: 'struct (anonymous struct at ./../SDL_syscdrom.h:103:15)' vs
  11. 'struct CDcaps'
  12. } SDL_CDcaps;
  13. ^
  14. ./../SDL_syscdrom.h:62:3: note: previous declaration is here
  15. } SDL_CDcaps;
  16. ^
  17. SDLOSXCAGuard.c:304:12: error: redefinition of 'SDLOSXCAGuard_Lock'
  18. static int SDLOSXCAGuard_Lock(SDLOSXCAGuard *cag)
  19. ^
  20. SDLOSXCAGuard.c:99:12: note: previous definition is here
  21. static int SDLOSXCAGuard_Lock(SDLOSXCAGuard *cag)
  22. ^
  23. SDLOSXCAGuard.c:320:16: error: redefinition of 'SDLOSXCAGuard_Unlock'
  24. static void SDLOSXCAGuard_Unlock(SDLOSXCAGuard *cag)
  25. ^
  26. SDLOSXCAGuard.c:115:16: note: previous definition is here
  27. static void SDLOSXCAGuard_Unlock(SDLOSXCAGuard *cag)
  28. ^
  29. SDLOSXCAGuard.c:331:12: error: redefinition of 'SDLOSXCAGuard_Try'
  30. static int SDLOSXCAGuard_Try (SDLOSXCAGuard *cag, int *outWasLocked)
  31. ^
  32. SDLOSXCAGuard.c:126:12: note: previous definition is here
  33. static int SDLOSXCAGuard_Try (SDLOSXCAGuard *cag, int *outWasLocked)
  34. ^
  35. SDLOSXCAGuard.c:351:16: error: redefinition of 'SDLOSXCAGuard_Wait'
  36. static void SDLOSXCAGuard_Wait(SDLOSXCAGuard *cag)
  37. ^
  38. SDLOSXCAGuard.c:146:16: note: previous definition is here
  39. static void SDLOSXCAGuard_Wait(SDLOSXCAGuard *cag)
  40. ^
  41. SDLOSXCAGuard.c:364:16: error: redefinition of 'SDLOSXCAGuard_Notify'
  42. static void SDLOSXCAGuard_Notify(SDLOSXCAGuard *cag)
  43. ^
  44. SDLOSXCAGuard.c:159:16: note: previous definition is here
  45. static void SDLOSXCAGuard_Notify(SDLOSXCAGuard *cag)
  46. ^
  47. SDLOSXCAGuard.c:372:16: error: redefinition of 'new_SDLOSXCAGuard'
  48. SDLOSXCAGuard *new_SDLOSXCAGuard(void)
  49. ^
  50. SDLOSXCAGuard.c:167:16: note: previous definition is here
  51. SDLOSXCAGuard *new_SDLOSXCAGuard(void)
  52. ^
  53. SDLOSXCAGuard.c:400:6: error: redefinition of 'delete_SDLOSXCAGuard'
  54. void delete_SDLOSXCAGuard(SDLOSXCAGuard *cag)
  55. ^
  56. SDLOSXCAGuard.c:195:6: note: previous definition is here
  57. void delete_SDLOSXCAGuard(SDLOSXCAGuard *cag)
  58. ^
  59. 7 errors generated.
  60. make[4]: *** [SDLOSXCAGuard.o] Error 1
  61. make[4]: *** Waiting for unfinished jobs....
  62. AudioFilePlayer.c:433:12: error: redefinition of
  63. 'AudioFilePlayer_SetDestination'
  64. static int AudioFilePlayer_SetDestination (AudioFilePlayer *afp, AudioUn...
  65. ^
  66. AudioFilePlayer.c:68:12: note: previous definition is here
  67. static int AudioFilePlayer_SetDestination (AudioFilePlayer *afp, AudioUn...
  68. ^
  69. AudioFilePlayer.c:470:13: error: redefinition of 'AudioFilePlayer_SetNotifier'
  70. static void AudioFilePlayer_SetNotifier(AudioFilePlayer *afp, AudioFileP...
  71. ^
  72. AudioFilePlayer.c:105:13: note: previous definition is here
  73. static void AudioFilePlayer_SetNotifier(AudioFilePlayer *afp, AudioFileP...
  74. ^
  75. AudioFilePlayer.c:476:12: error: redefinition of 'AudioFilePlayer_IsConnected'
  76. static int AudioFilePlayer_IsConnected(AudioFilePlayer *afp)
  77. ^
  78. AudioFilePlayer.c:111:12: note: previous definition is here
  79. static int AudioFilePlayer_IsConnected(AudioFilePlayer *afp)
  80. ^
  81. AudioFilePlayer.c:481:18: error: redefinition of 'AudioFilePlayer_GetDestUnit'
  82. static AudioUnit AudioFilePlayer_GetDestUnit(AudioFilePlayer *afp)
  83. ^
  84. AudioFilePlayer.c:116:18: note: previous definition is here
  85. static AudioUnit AudioFilePlayer_GetDestUnit(AudioFilePlayer *afp)
  86. ^
  87. AudioFilePlayer.c:486:13: error: redefinition of 'AudioFilePlayer_Print'
  88. static void AudioFilePlayer_Print(AudioFilePlayer *afp)
  89. ^
  90. AudioFilePlayer.c:121:13: note: previous definition is here
  91. static void AudioFilePlayer_Print(AudioFilePlayer *afp)
  92. ^
  93. AudioFilePlayer.c:494:16: error: redefinition of 'AudioFilePlayer_SetStartFrame'
  94. static void AudioFilePlayer_SetStartFrame (AudioFilePlayer *afp, int frame)
  95. ^
  96. AudioFilePlayer.c:129:16: note: previous definition is here
  97. static void AudioFilePlayer_SetStartFrame (AudioFilePlayer *afp, int frame)
  98. ^
  99. AudioFilePlayer.c:503:15: error: redefinition of
  100. 'AudioFilePlayer_GetCurrentFrame'
  101. static int AudioFilePlayer_GetCurrentFrame (AudioFilePlayer *afp)
  102. ^
  103. AudioFilePlayer.c:138:15: note: previous definition is here
  104. static int AudioFilePlayer_GetCurrentFrame (AudioFilePlayer *afp)
  105. ^
  106. AudioFilePlayer.c:508:16: error: redefinition of 'AudioFilePlayer_SetStopFrame'
  107. static void AudioFilePlayer_SetStopFrame (AudioFilePlayer *afp, int frame)
  108. ^
  109. AudioFilePlayer.c:143:16: note: previous definition is here
  110. static void AudioFilePlayer_SetStopFrame (AudioFilePlayer *afp, int frame)
  111. ^
  112. AudioFilePlayer.c:515:6: error: redefinition of 'delete_AudioFilePlayer'
  113. void delete_AudioFilePlayer(AudioFilePlayer *afp)
  114. ^
  115. AudioFilePlayer.c:150:6: note: previous definition is here
  116. void delete_AudioFilePlayer(AudioFilePlayer *afp)
  117. ^
  118. AudioFilePlayer.c:534:15: error: redefinition of 'AudioFilePlayer_Connect'
  119. static int AudioFilePlayer_Connect(AudioFilePlayer *afp)
  120. ^
  121. AudioFilePlayer.c:169:15: note: previous definition is here
  122. static int AudioFilePlayer_Connect(AudioFilePlayer *afp)
  123. ^
  124. AudioFilePlayer.c:563:16: error: redefinition of
  125. 'AudioFilePlayer_DoNotification'
  126. static void AudioFilePlayer_DoNotification (AudioFilePlayer *afp, OSS...
  127. ^
  128. AudioFilePlayer.c:198:16: note: previous definition is here
  129. static void AudioFilePlayer_DoNotification (AudioFilePlayer *afp, OSS...
  130. ^
  131. AudioFilePlayer.c:577:16: error: redefinition of 'AudioFilePlayer_Disconnect'
  132. static void AudioFilePlayer_Disconnect (AudioFilePlayer *afp)
  133. ^
  134. AudioFilePlayer.c:212:16: note: previous definition is here
  135. static void AudioFilePlayer_Disconnect (AudioFilePlayer *afp)
  136. ^
  137. AudioFilePlayer.c:604:3: error: typedef redefinition with different types
  138. ('struct SSNDData' vs 'struct SSNDData')
  139. } SSNDData;
  140. ^
  141. AudioFilePlayer.c:239:3: note: previous definition is here
  142. } SSNDData;
  143. ^
  144. AudioFilePlayer.c:606:15: error: redefinition of 'AudioFilePlayer_OpenFile'
  145. static int AudioFilePlayer_OpenFile (AudioFilePlayer *afp, const FSRe...
  146. ^
  147. AudioFilePlayer.c:241:15: note: previous definition is here
  148. static int AudioFilePlayer_OpenFile (AudioFilePlayer *afp, const FSRe...
  149. ^
  150. AudioFilePlayer.c:681:18: error: redefinition of 'new_AudioFilePlayer'
  151. AudioFilePlayer *new_AudioFilePlayer (const FSRef *inFileRef)
  152. ^
  153. AudioFilePlayer.c:316:18: note: previous definition is here
  154. AudioFilePlayer *new_AudioFilePlayer (const FSRef *inFileRef)
  155. ^
  156. 15 errors generated.
  157. make[4]: *** [AudioFilePlayer.o] Error 1
  158. AudioFileReaderThread.c:659:16: error: redefinition of 'S_FileData'
  159. typedef struct S_FileData
  160. ^
  161. AudioFileReaderThread.c:43:16: note: previous definition is here
  162. typedef struct S_FileData
  163. ^
  164. AudioFileReaderThread.c:663:3: error: typedef redefinition with different types
  165. ('struct (anonymous struct at AudioFileReaderThread.c:659:16)' vs
  166. 'struct S_FileData')
  167. } FileData;
  168. ^
  169. AudioFileReaderThread.c:47:3: note: previous definition is here
  170. } FileData;
  171. ^
  172. AudioFileReaderThread.c:666:16: error: redefinition of 'S_FileReaderThread'
  173. typedef struct S_FileReaderThread {
  174. ^
  175. AudioFileReaderThread.c:50:16: note: previous definition is here
  176. typedef struct S_FileReaderThread {
  177. ^
  178. AudioFileReaderThread.c:691:3: error: typedef redefinition with different types
  179. ('struct (anonymous struct at AudioFileReaderThread.c:666:16)' vs 'struct
  180. S_FileReaderThread')
  181. } FileReaderThread;
  182. ^
  183. AudioFileReaderThread.c:75:3: note: previous definition is here
  184. } FileReaderThread;
  185. ^
  186. AudioFileReaderThread.c:694:23: error: redefinition of
  187. 'FileReaderThread_GetGuard'
  188. static SDLOSXCAGuard* FileReaderThread_GetGuard(FileReaderThread *frt)
  189. ^
  190. AudioFileReaderThread.c:78:23: note: previous definition is here
  191. static SDLOSXCAGuard* FileReaderThread_GetGuard(FileReaderThread *frt)
  192. ^
  193. AudioFileReaderThread.c:700:12: error: redefinition of
  194. 'FileReaderThread_TryNextRead'
  195. static int FileReaderThread_TryNextRead (FileReaderThread *frt, AudioFil...
  196. ^
  197. AudioFileReaderThread.c:84:12: note: previous definition is here
  198. static int FileReaderThread_TryNextRead (FileReaderThread *frt, AudioFil...
  199. ^
  200. AudioFileReaderThread.c:731:16: error: redefinition of
  201. 'FileReaderThread_AddReader'
  202. static void FileReaderThread_AddReader(FileReaderThread *frt)
  203. ^
  204. AudioFileReaderThread.c:115:16: note: previous definition is here
  205. static void FileReaderThread_AddReader(FileReaderThread *frt)
  206. ^
  207. AudioFileReaderThread.c:741:16: error: redefinition of
  208. 'FileReaderThread_RemoveReader'
  209. static void FileReaderThread_RemoveReader (FileReaderThread *frt, Aud...
  210. ^
  211. AudioFileReaderThread.c:125:16: note: previous definition is here
  212. static void FileReaderThread_RemoveReader (FileReaderThread *frt, Aud...
  213. ^
  214. AudioFileReaderThread.c:776:15: error: redefinition of
  215. 'FileReaderThread_StartFixedPriorityThread'
  216. static int FileReaderThread_StartFixedPriorityThread (FileReaderThread *frt)
  217. ^
  218. AudioFileReaderThread.c:160:15: note: previous definition is here
  219. static int FileReaderThread_StartFixedPriorityThread (FileReaderThread *frt)
  220. ^
  221. AudioFileReaderThread.c:814:16: error: redefinition of
  222. 'FileReaderThread_GetThreadBasePriority'
  223. static UInt32 FileReaderThread_GetThreadBasePriority (pthread_t inThread)
  224. ^
  225. AudioFileReaderThread.c:198:16: note: previous definition is here
  226. static UInt32 FileReaderThread_GetThreadBasePriority (pthread_t inThread)
  227. ^
  228. AudioFileReaderThread.c:855:17: error: redefinition of
  229. 'FileReaderThread_DiskReaderEntry'
  230. static void *FileReaderThread_DiskReaderEntry (void *inRefCon)
  231. ^
  232. AudioFileReaderThread.c:239:17: note: previous definition is here
  233. static void *FileReaderThread_DiskReaderEntry (void *inRefCon)
  234. ^
  235. AudioFileReaderThread.c:866:16: error: redefinition of
  236. 'FileReaderThread_ReadNextChunk'
  237. static void FileReaderThread_ReadNextChunk (FileReaderThread *frt)
  238. ^
  239. AudioFileReaderThread.c:250:16: note: previous definition is here
  240. static void FileReaderThread_ReadNextChunk (FileReaderThread *frt)
  241. ^
  242. AudioFileReaderThread.c:950:6: error: redefinition of 'delete_FileReaderThread'
  243. void delete_FileReaderThread(FileReaderThread *frt)
  244. ^
  245. AudioFileReaderThread.c:334:6: note: previous definition is here
  246. void delete_FileReaderThread(FileReaderThread *frt)
  247. ^
  248. AudioFileReaderThread.c:959:19: error: redefinition of 'new_FileReaderThread'
  249. FileReaderThread *new_FileReaderThread ()
  250. ^
  251. AudioFileReaderThread.c:343:19: note: previous definition is here
  252. FileReaderThread *new_FileReaderThread ()
  253. ^
  254. AudioFileReaderThread.c:992:15: error: redefinition of
  255. 'AudioFileManager_DoConnect'
  256. static int AudioFileManager_DoConnect (AudioFileManager *afm)
  257. ^
  258. AudioFileReaderThread.c:376:15: note: previous definition is here
  259. static int AudioFileManager_DoConnect (AudioFileManager *afm)
  260. ^
  261. AudioFileReaderThread.c:1030:16: error: redefinition of
  262. 'AudioFileManager_Disconnect'
  263. static void AudioFileManager_Disconnect (AudioFileManager *afm)
  264. ^
  265. AudioFileReaderThread.c:414:16: note: previous definition is here
  266. static void AudioFileManager_Disconnect (AudioFileManager *afm)
  267. ^
  268. AudioFileReaderThread.c:1039:17: error: redefinition of 'AudioFileManager_Read'
  269. static OSStatus AudioFileManager_Read(AudioFileManager *afm, char *buffe...
  270. ^
  271. AudioFileReaderThread.c:423:17: note: previous definition is here
  272. static OSStatus AudioFileManager_Read(AudioFileManager *afm, char *buffe...
  273. ^
  274. AudioFileReaderThread.c:1049:17: error: redefinition of
  275. 'AudioFileManager_GetFileData'
  276. static OSStatus AudioFileManager_GetFileData (AudioFileManager *afm, voi...
  277. ^
  278. AudioFileReaderThread.c:433:17: note: previous definition is here
  279. static OSStatus AudioFileManager_GetFileData (AudioFileManager *afm, voi...
  280. ^
  281. AudioFileReaderThread.c:1079:16: error: redefinition of
  282. 'AudioFileManager_AfterRender'
  283. static void AudioFileManager_AfterRender (AudioFileManager *afm)
  284. ^
  285. AudioFileReaderThread.c:463:16: note: previous definition is here
  286. static void AudioFileManager_AfterRender (AudioFileManager *afm)
  287. ^
  288. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  289. 20 errors generated.
  290. make[4]: *** [AudioFileReaderThread.o] Error 1
  291. In file included from SDL_syscdrom.c:31:
  292. In file included from ./SDL_syscdrom_c.h:267:
  293. ./../SDL_syscdrom.h:27:15: error: redefinition of 'CDcaps'
  294. extern struct CDcaps {
  295. ^
  296. ./SDL_syscdrom_c.h:131:10: note: './../SDL_syscdrom.h' included multiple times,
  297. additional include site here
  298. #include "../SDL_syscdrom.h"
  299. ^
  300. ./SDL_syscdrom_c.h:267:10: note: './../SDL_syscdrom.h' included multiple times,
  301. additional include site here
  302. #include "../SDL_syscdrom.h"
  303. ^
  304. ./../SDL_syscdrom.h:27:15: note: unguarded header; consider using #ifdef guards
  305. or #pragma once
  306. extern struct CDcaps {
  307. ^
  308. In file included from SDL_syscdrom.c:31:
  309. In file included from ./SDL_syscdrom_c.h:267:
  310. ./../SDL_syscdrom.h:62:3: error: redeclaration of 'SDL_CDcaps' with a different
  311. type: 'struct (anonymous struct at ./../SDL_syscdrom.h:27:15)' vs
  312. 'struct CDcaps'
  313. } SDL_CDcaps;
  314. ^
  315. ./../SDL_syscdrom.h:62:3: note: previous declaration is here
  316. } SDL_CDcaps;
  317. ^
  318. In file included from SDL_syscdrom.c:31:
  319. In file included from ./SDL_syscdrom_c.h:267:
  320. ./../SDL_syscdrom.h:103:15: error: redefinition of 'CDcaps'
  321. extern struct CDcaps {
  322. ^
  323. ./../SDL_syscdrom.h:27:15: note: previous definition is here
  324. extern struct CDcaps {
  325. ^
  326. In file included from SDL_syscdrom.c:31:
  327. In file included from ./SDL_syscdrom_c.h:267:
  328. ./../SDL_syscdrom.h:138:3: error: redeclaration of 'SDL_CDcaps' with a different
  329. type: 'struct (anonymous struct at ./../SDL_syscdrom.h:103:15)' vs
  330. 'struct CDcaps'
  331. } SDL_CDcaps;
  332. ^
  333. ./../SDL_syscdrom.h:62:3: note: previous declaration is here
  334. } SDL_CDcaps;
  335. ^
  336. In file included from SDL_syscdrom.c:550:
  337. In file included from ./SDL_syscdrom_c.h:131:
  338. ./../SDL_syscdrom.h:27:15: error: redefinition of 'CDcaps'
  339. extern struct CDcaps {
  340. ^
  341. ./SDL_syscdrom_c.h:131:10: note: './../SDL_syscdrom.h' included multiple times,
  342. additional include site here
  343. #include "../SDL_syscdrom.h"
  344. ^
  345. ./SDL_syscdrom_c.h:131:10: note: './../SDL_syscdrom.h' included multiple times,
  346. additional include site here
  347. #include "../SDL_syscdrom.h"
  348. ^
  349. ./../SDL_syscdrom.h:27:15: note: unguarded header; consider using #ifdef guards
  350. or #pragma once
  351. extern struct CDcaps {
  352. ^
  353. In file included from SDL_syscdrom.c:550:
  354. In file included from ./SDL_syscdrom_c.h:131:
  355. ./../SDL_syscdrom.h:62:3: error: redeclaration of 'SDL_CDcaps' with a different
  356. type: 'struct (anonymous struct at ./../SDL_syscdrom.h:27:15)' vs
  357. 'struct CDcaps'
  358. } SDL_CDcaps;
  359. ^
  360. ./../SDL_syscdrom.h:62:3: note: previous declaration is here
  361. } SDL_CDcaps;
  362. ^
  363. In file included from SDL_syscdrom.c:550:
  364. In file included from ./SDL_syscdrom_c.h:131:
  365. ./../SDL_syscdrom.h:103:15: error: redefinition of 'CDcaps'
  366. extern struct CDcaps {
  367. ^
  368. ./../SDL_syscdrom.h:27:15: note: previous definition is here
  369. extern struct CDcaps {
  370. ^
  371. In file included from SDL_syscdrom.c:550:
  372. In file included from ./SDL_syscdrom_c.h:131:
  373. ./../SDL_syscdrom.h:138:3: error: redeclaration of 'SDL_CDcaps' with a different
  374. type: 'struct (anonymous struct at ./../SDL_syscdrom.h:103:15)' vs
  375. 'struct CDcaps'
  376. } SDL_CDcaps;
  377. ^
  378. ./../SDL_syscdrom.h:62:3: note: previous declaration is here
  379. } SDL_CDcaps;
  380. ^
  381. In file included from SDL_syscdrom.c:550:
  382. In file included from ./SDL_syscdrom_c.h:267:
  383. ./../SDL_syscdrom.h:27:15: error: redefinition of 'CDcaps'
  384. extern struct CDcaps {
  385. ^
  386. ./SDL_syscdrom_c.h:131:10: note: './../SDL_syscdrom.h' included multiple times,
  387. additional include site here
  388. #include "../SDL_syscdrom.h"
  389. ^
  390. ./SDL_syscdrom_c.h:267:10: note: './../SDL_syscdrom.h' included multiple times,
  391. additional include site here
  392. #include "../SDL_syscdrom.h"
  393. ^
  394. ./../SDL_syscdrom.h:27:15: note: unguarded header; consider using #ifdef guards
  395. or #pragma once
  396. extern struct CDcaps {
  397. ^
  398. In file included from SDL_syscdrom.c:550:
  399. In file included from ./SDL_syscdrom_c.h:267:
  400. ./../SDL_syscdrom.h:62:3: error: redeclaration of 'SDL_CDcaps' with a different
  401. type: 'struct (anonymous struct at ./../SDL_syscdrom.h:27:15)' vs
  402. 'struct CDcaps'
  403. } SDL_CDcaps;
  404. ^
  405. ./../SDL_syscdrom.h:62:3: note: previous declaration is here
  406. } SDL_CDcaps;
  407. ^
  408. In file included from SDL_syscdrom.c:550:
  409. In file included from ./SDL_syscdrom_c.h:267:
  410. ./../SDL_syscdrom.h:103:15: error: redefinition of 'CDcaps'
  411. extern struct CDcaps {
  412. ^
  413. ./../SDL_syscdrom.h:27:15: note: previous definition is here
  414. extern struct CDcaps {
  415. ^
  416. In file included from SDL_syscdrom.c:550:
  417. In file included from ./SDL_syscdrom_c.h:267:
  418. ./../SDL_syscdrom.h:138:3: error: redeclaration of 'SDL_CDcaps' with a different
  419. type: 'struct (anonymous struct at ./../SDL_syscdrom.h:103:15)' vs
  420. 'struct CDcaps'
  421. } SDL_CDcaps;
  422. ^
  423. ./../SDL_syscdrom.h:62:3: note: previous declaration is here
  424. } SDL_CDcaps;
  425. ^
  426. SDL_syscdrom.c:581:12: error: redefinition of 'LoadTracks'
  427. static int LoadTracks (SDL_CD *cdrom)
  428. ^
  429. SDL_syscdrom.c:62:12: note: previous definition is here
  430. static int LoadTracks (SDL_CD *cdrom)
  431. ^
  432. SDL_syscdrom.c:602:15: error: redefinition of 'GetFileForOffset'
  433. static FSRef* GetFileForOffset (SDL_CD *cdrom, int start, int length, i...
  434. ^
  435. SDL_syscdrom.c:83:15: note: previous definition is here
  436. static FSRef* GetFileForOffset (SDL_CD *cdrom, int start, int length, i...
  437. ^
  438. SDL_syscdrom.c:637:13: error: redefinition of 'CompletionProc'
  439. static void CompletionProc (SDL_CD *cdrom)
  440. ^
  441. SDL_syscdrom.c:118:13: note: previous definition is here
  442. static void CompletionProc (SDL_CD *cdrom)
  443. ^
  444. SDL_syscdrom.c:681:5: error: redefinition of 'SDL_SYS_CDInit'
  445. int SDL_SYS_CDInit (void)
  446. ^
  447. SDL_syscdrom.c:162:5: note: previous definition is here
  448. int SDL_SYS_CDInit (void)
  449. ^
  450. SDL_syscdrom.c:769:6: error: redefinition of 'SDL_SYS_CDQuit'
  451. void SDL_SYS_CDQuit(void)
  452. ^
  453. SDL_syscdrom.c:250:6: note: previous definition is here
  454. void SDL_SYS_CDQuit(void)
  455. ^
  456. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  457. 20 errors generated.
  458. make[4]: *** [SDL_syscdrom.o] Error 1
  459. In file included from CDPlayer.c:29:
  460. ./CDPlayer.h:41:40: error: unknown type name 'SDL_CD'
  461. typedef void (*CDPlayerCompletionProc)(SDL_CD *cdrom) ;
  462. ^
  463. ./CDPlayer.h:55:58: error: unknown type name 'SDL_CD'
  464. void SetCompletionProc (CDPlayerCompletionProc proc, SDL_CD *cdrom);
  465. ^
  466. ./CDPlayer.h:57:49: error: unknown type name 'SDL_CD'
  467. int ReadTOCData (FSVolumeRefNum theVolume, SDL_CD *theCD);
  468. ^
  469. CDPlayer.c:67:8: error: unknown type name 'SDL_CD'
  470. static SDL_CD* theCDROM;
  471. ^
  472. CDPlayer.c:138:44: error: unknown type name 'SDL_CD'
  473. int ReadTOCData (FSVolumeRefNum theVolume, SDL_CD *theCD)
  474. ^
  475. CDPlayer.c:289:76: error: use of undeclared identifier 'SDL_DATA_TRACK'
  476. ...theCD->track[idx].type = (isDataTrack == kCFBooleanTrue) ? SDL_DATA_TRAC...
  477. ^
  478. CDPlayer.c:289:93: error: use of undeclared identifier 'SDL_AUDIO_TRACK'
  479. ...= (isDataTrack == kCFBooleanTrue) ? SDL_DATA_TRACK : SDL_AUDIO_TRACK;
  480. ^
  481. CDPlayer.c:383:55: error: use of undeclared identifier 'SDL_MAX_TRACKS'
  482. assert(0 <= trackID && trackID <= SDL_MAX_TRACKS);
  483. ^
  484. CDPlayer.c:527:54: error: unknown type name 'SDL_CD'
  485. void SetCompletionProc (CDPlayerCompletionProc proc, SDL_CD *cdrom)
  486. ^
  487. CDPlayer.c:562:45: error: too few arguments to function call, expected 3, have 2
  488. SDL_CreateThread(RunCallBackThread, NULL);
  489. ~~~~~~~~~~~~~~~~ ^
  490. /opt/x86_64/include/SDL2/SDL_thread.h:168:1: note: 'SDL_CreateThread' declared
  491. here
  492. extern DECLSPEC SDL_Thread *SDLCALL
  493. ^
  494. CDPlayer.c:703:24: error: redefinition of 'playBackWasInit'
  495. static int playBackWasInit = 0;
  496. ^
  497. CDPlayer.c:61:24: note: previous definition is here
  498. static int playBackWasInit = 0;
  499. ^
  500. CDPlayer.c:705:25: error: redefinition of 'thePlayer'
  501. static AudioFilePlayer* thePlayer = NULL;
  502. ^
  503. CDPlayer.c:63:25: note: previous definition is here
  504. static AudioFilePlayer* thePlayer = NULL;
  505. ^
  506. CDPlayer.c:706:33: error: redefinition of 'completionProc'
  507. static CDPlayerCompletionProc completionProc = NULL;
  508. ^
  509. CDPlayer.c:64:33: note: previous definition is here
  510. static CDPlayerCompletionProc completionProc = NULL;
  511. ^
  512. CDPlayer.c:707:25: error: redefinition of 'apiMutex'
  513. static SDL_mutex *apiMutex = NULL;
  514. ^
  515. CDPlayer.c:65:25: note: previous definition is here
  516. static SDL_mutex *apiMutex = NULL;
  517. ^
  518. CDPlayer.c:709:8: error: unknown type name 'SDL_CD'
  519. static SDL_CD* theCDROM;
  520. ^
  521. CDPlayer.c:726:10: error: redefinition of 'Lock'
  522. void Lock ()
  523. ^
  524. CDPlayer.c:84:10: note: previous definition is here
  525. void Lock ()
  526. ^
  527. CDPlayer.c:734:10: error: redefinition of 'Unlock'
  528. void Unlock ()
  529. ^
  530. CDPlayer.c:92:10: note: previous definition is here
  531. void Unlock ()
  532. ^
  533. CDPlayer.c:739:5: error: redefinition of 'DetectAudioCDVolumes'
  534. int DetectAudioCDVolumes(FSVolumeRefNum *volumes, int numVolumes)
  535. ^
  536. CDPlayer.c:97:5: note: previous definition is here
  537. int DetectAudioCDVolumes(FSVolumeRefNum *volumes, int numVolumes)
  538. ^
  539. CDPlayer.c:780:44: error: unknown type name 'SDL_CD'
  540. int ReadTOCData (FSVolumeRefNum theVolume, SDL_CD *theCD)
  541. ^
  542. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  543. 20 errors generated.
RAW Paste Data