Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Libraries/Fatfs/diskio.h')
-rw-r--r--src/Libraries/Fatfs/diskio.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/Libraries/Fatfs/diskio.h b/src/Libraries/Fatfs/diskio.h
index 43e5966c..a1ecc3b6 100644
--- a/src/Libraries/Fatfs/diskio.h
+++ b/src/Libraries/Fatfs/diskio.h
@@ -5,8 +5,11 @@
#ifndef _DISKIO
#ifdef __cplusplus
-unsigned int DiskioGetAndClearMaxRetryCount();
+unsigned int DiskioGetAndClearMaxRetryCount() noexcept;
+# define NOEXCEPT noexcept
extern "C" {
+#else
+# define NOEXCEPT
#endif
#define _READONLY 0 /* 1: Remove write functions */
@@ -31,14 +34,14 @@ typedef enum {
/*---------------------------------------*/
/* Prototypes for disk control functions */
-int assign_drives (int, int);
-DSTATUS disk_initialize (BYTE);
-DSTATUS disk_status (BYTE);
-DRESULT disk_read (BYTE, BYTE*, DWORD, BYTE);
+int assign_drives (int, int) NOEXCEPT;
+DSTATUS disk_initialize (BYTE) NOEXCEPT;
+DSTATUS disk_status (BYTE) NOEXCEPT;
+DRESULT disk_read (BYTE, BYTE*, DWORD, BYTE) NOEXCEPT;
#if _READONLY == 0
-DRESULT disk_write (BYTE, const BYTE*, DWORD, BYTE);
+DRESULT disk_write (BYTE, const BYTE*, DWORD, BYTE) NOEXCEPT;
#endif
-DRESULT disk_ioctl (BYTE, BYTE, void*);
+DRESULT disk_ioctl (BYTE, BYTE, void*) NOEXCEPT;
/* Disk Status Bits (DSTATUS) */