1
General discussions / Re: SFML 2.0 RC
« on: May 24, 2012, 06:05:11 am »
Hi Laurent!
I've not been able to compile with <SFML/Network/Http.h> except if I make the change below in the header file.
Also Ftp.hpp and Http.hpp are in Network.hpp, but Ftp.h and Http.h are not in Network.h, so the patch below correct this too.
I've not been able to compile with <SFML/Network/Http.h> except if I make the change below in the header file.
Also Ftp.hpp and Http.hpp are in Network.hpp, but Ftp.h and Http.h are not in Network.h, so the patch below correct this too.
diff -Naur LaurentGomila-CSFML-bfebe0a/include/SFML/Network/Http.h CSFML_git_2012-05-24/include/SFML/Network/Http.h
--- LaurentGomila-CSFML-bfebe0a/include/SFML/Network/Http.h 2012-05-22 17:56:01.000000000 +0200
+++ CSFML_git_2012-05-24/include/SFML/Network/Http.h 2012-05-24 05:55:57.000000000 +0200
@@ -37,19 +37,19 @@
/// \brief Enumerate the available HTTP methods for a request
///
////////////////////////////////////////////////////////////
-enum sfHttpMethod
+typedef enum
{
sfHttpGet, ///< Request in get mode, standard method to retrieve a page
sfHttpPost, ///< Request in post mode, usually to send data to a page
sfHttpHead ///< Request a page's header only
-};
+} sfHttpMethod;
////////////////////////////////////////////////////////////
/// \brief Enumerate all the valid status codes for a response
///
////////////////////////////////////////////////////////////
-enum sfHttpStatus
+typedef enum
{
// 2xx: success
sfHttpOk = 200, ///< Most common code returned when operation was successful
@@ -78,7 +78,7 @@
// 10xx: SFML custom codes
sfHttpInvalidResponse = 1000, ///< Response is not a valid HTTP one
sfHttpConnectionFailed = 1001 ///< Connection with server failed
-};
+} sfHttpStatus;
////////////////////////////////////////////////////////////
diff -Naur LaurentGomila-CSFML-bfebe0a/include/SFML/Network.h CSFML_git_2012-05-24/include/SFML/Network.h
--- LaurentGomila-CSFML-bfebe0a/include/SFML/Network.h 2012-05-22 17:56:01.000000000 +0200
+++ CSFML_git_2012-05-24/include/SFML/Network.h 2012-05-24 05:55:20.000000000 +0200
@@ -30,6 +30,8 @@
////////////////////////////////////////////////////////////
#include <SFML/System.h>
+#include <SFML/Network/Ftp.h>
+#include <SFML/Network/Http.h>
#include <SFML/Network/IpAddress.h>
#include <SFML/Network/Packet.h>
#include <SFML/Network/SocketSelector.h>
--- LaurentGomila-CSFML-bfebe0a/include/SFML/Network/Http.h 2012-05-22 17:56:01.000000000 +0200
+++ CSFML_git_2012-05-24/include/SFML/Network/Http.h 2012-05-24 05:55:57.000000000 +0200
@@ -37,19 +37,19 @@
/// \brief Enumerate the available HTTP methods for a request
///
////////////////////////////////////////////////////////////
-enum sfHttpMethod
+typedef enum
{
sfHttpGet, ///< Request in get mode, standard method to retrieve a page
sfHttpPost, ///< Request in post mode, usually to send data to a page
sfHttpHead ///< Request a page's header only
-};
+} sfHttpMethod;
////////////////////////////////////////////////////////////
/// \brief Enumerate all the valid status codes for a response
///
////////////////////////////////////////////////////////////
-enum sfHttpStatus
+typedef enum
{
// 2xx: success
sfHttpOk = 200, ///< Most common code returned when operation was successful
@@ -78,7 +78,7 @@
// 10xx: SFML custom codes
sfHttpInvalidResponse = 1000, ///< Response is not a valid HTTP one
sfHttpConnectionFailed = 1001 ///< Connection with server failed
-};
+} sfHttpStatus;
////////////////////////////////////////////////////////////
diff -Naur LaurentGomila-CSFML-bfebe0a/include/SFML/Network.h CSFML_git_2012-05-24/include/SFML/Network.h
--- LaurentGomila-CSFML-bfebe0a/include/SFML/Network.h 2012-05-22 17:56:01.000000000 +0200
+++ CSFML_git_2012-05-24/include/SFML/Network.h 2012-05-24 05:55:20.000000000 +0200
@@ -30,6 +30,8 @@
////////////////////////////////////////////////////////////
#include <SFML/System.h>
+#include <SFML/Network/Ftp.h>
+#include <SFML/Network/Http.h>
#include <SFML/Network/IpAddress.h>
#include <SFML/Network/Packet.h>
#include <SFML/Network/SocketSelector.h>