comparison src/os_macosx.m @ 29228:24b7e14d55e2 v8.2.5133

patch 8.2.5133: MacOS: build fails Commit: https://github.com/vim/vim/commit/1f68d992cd2fd7f484fbdc14eb8a9feefe59bec8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 19 17:22:49 2022 +0100 patch 8.2.5133: MacOS: build fails Problem: MacOS: build fails. Solution: Remove "#if 0" from timer_delete().
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jun 2022 18:30:04 +0200
parents b90bca860b5a
children 3f88a6d02354
comparison
equal deleted inserted replaced
29227:a10714fe6372 29228:24b7e14d55e2
368 * An emulation of the POSIX timer_delete function. 368 * An emulation of the POSIX timer_delete function.
369 * 369 *
370 * Disabled because it is not currently used, but an implemented provided 370 * Disabled because it is not currently used, but an implemented provided
371 * for completeness and possible future use. 371 * for completeness and possible future use.
372 */ 372 */
373 #if 0
374 int 373 int
375 timer_delete(timer_t timerid) 374 timer_delete(timer_t timerid)
376 { 375 {
377 /* Calls _timer_cancel() */ 376 /* Calls _timer_cancel() */
378 if (timerid != NULL) 377 if (timerid != NULL)
379 dispatch_source_cancel(timerid->tim_timer); 378 dispatch_source_cancel(timerid->tim_timer);
380 379
381 return 0; 380 return 0;
382 } 381 }
383 #endif
384 382
385 #endif /* FEAT_RELTIME */ 383 #endif /* FEAT_RELTIME */
386 384
387 /* Lift the compiler warning suppression. */ 385 /* Lift the compiler warning suppression. */
388 #if defined(__clang__) && defined(__STRICT_ANSI__) 386 #if defined(__clang__) && defined(__STRICT_ANSI__)