Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo and add important include #173

Merged
merged 4 commits into from
Jul 15, 2019
Merged

Fix typo and add important include #173

merged 4 commits into from
Jul 15, 2019

Conversation

toluschr
Copy link
Contributor

@toluschr toluschr commented Jul 13, 2019

Fixes a typo (hellowrold).

Changes proposed in this pull request:

  • Change "hellowrold" to "helloworld"
  • Add "#include <LCUI_Build.h>" to "include/LCUI.h" to avoid issues when include order is wrong

@lc-soft

@toluschr toluschr changed the title Fix typo in the "building" section Fix typo and add important include Jul 13, 2019
@@ -32,6 +32,7 @@
#ifndef LCUI_H
#define LCUI_H

#include <LCUI_Build.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add "#include <LCUI_Build.h>" to "include/LCUI.h" to avoid issues when include order is wrong

LCUI_Build.h should always be the first one to be included, I think LCUI.h does not need to be modified.

I have the following improvements, how do you feel?

files:

+ include/LCUI.h

include/LCUI.h:

#include <LCUI_Build.h>
#include <LCUI/LCUI.h>

After this modification, we can include the header file in a new way:

- #include <LCUI_Build.h>
- #include <LCUI/LCUI.h>
+#include <LCUI.h>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That seems like a good idea. Similar to how windows handles all important includes with Windows.h

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@toluschr Ok, since you and I agree with these improvements, please replace your current changes with the above.

@toluschr
Copy link
Contributor Author

toluschr commented Jul 14, 2019

I also made two .spec files (runtime and devel) to easily install this on fedora and other linux distros with an rpm package. Perhaps you could add the rpm files as a relese.

https://gist.github.com/toluschr/c3239049ed88334fd83ab96450c61a42

(You can build the spec files to an rpm file with the following commands)
rpmbuild --define '_build_id_links none' -bb lcui-devel.spec
rpmbuild --define '_build_id_links none' -bb lcui.spec

include/LCUI.h Outdated
@@ -0,0 +1,2 @@
#include <LCUI_Build.h>
#include <LCUI/LCUI.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add new line.

image

@lc-soft
Copy link
Owner

lc-soft commented Jul 15, 2019

@toluschr
Copy link
Contributor Author

I changed the license to MIT!

@lc-soft lc-soft merged commit 92dc03f into lc-soft:develop Jul 15, 2019
lc-soft pushed a commit that referenced this pull request Oct 3, 2019
* Fix typo in the "building" section

* include LCUI_Build.h in LCUI/LCUI.h to avoid lots of errors I had when not having the correct include order

* changed: include headers to integrate the changes by lc-soft

* added: newline at end of "include/LCUI.h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants